解决方式有两种:1、在buildCustomComponent,将组件包裹在 Stack() 标签内,并且设置position({ x: 0, y: 0 })。2、是升级RNOH 版本至500。buildCustomComponent具体代码如下:@Builder export function buildCustomComponent(ctx: ComponentBuilderContext) { Stack() { if (ctx.componentName === LOTTIE_TYPE) { LottieAnimationView({ ctx: ctx.rnComponentContext, tag: ctx.tag }) } } .position({ x: 0, y: 0 }) }
解决方式有两种:
1、在buildCustomComponent,将组件包裹在 Stack() 标签内,并且设置position({ x: 0, y: 0 })。
2、是升级RNOH 版本至500。
buildCustomComponent具体代码如下: