Closed
Description
描述 / Description
RNOH框架升级,descriptor取值异常导致应用crash
subscribeToDescriptorChanges 回调中第二参数descriptorWrapper不在能通过props取到propSelector,通过如下方式解决:
aboutToAppear() {
...
this.onDescriptorWrapperChange(this.ctx.descriptorRegistry.getDescriptor<RNC.RSSignatureArkView.Descriptor>(this.tag)!)
this.cleanUpCallbacks.push(this.ctx.descriptorRegistry.subscribeToDescriptorChanges(this.tag,
descriptor => {
this.onDescriptorWrapperChange(descriptor! as RNC.RSSignatureArkView.Descriptor)
}
));
private onDescriptorWrapperChange(descriptor: RNC.RSSignatureArkView.Descriptor) {
this.logger.info('descriptor change!');
this.descriptorWrapper = new RNC.RSSignatureArkView.DescriptorWrapper(descriptor);
this.setProps();
}
复现步骤 / Steps to reproduce
点击用例,应用crash
库版本 / Library version
0.4.11-0.0.4
React Native OpenHarmony version
0.72.33
构建类型 / Build type
Debug app & dev bundle
设备 / Device
Real device
设备版本 / Device model
Mate 60
已悉知 / Acknowledgements
Yes
Metadata
Metadata
Assignees
Labels
No labels