File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
harmony/rnoh_signature_capture/src/main/ets Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,12 @@ export struct SignatureCaptureArkView {
62
62
63
63
this.eventEmitter = new RNC.RSSignatureArkView.EventEmitter(this.ctx.rnInstance, this.tag)
64
64
65
- this.onDescriptorWrapperChange(this.ctx.descriptorRegistry.findDescriptorWrapperByTag <RNC.RSSignatureArkView.DescriptorWrapper >(this.tag)!)
65
+ this.onDescriptorWrapperChange(this.ctx.descriptorRegistry.getDescriptor <RNC.RSSignatureArkView.Descriptor >(this.tag)!)
66
66
67
67
this.cleanUpCallbacks.push(this.ctx.descriptorRegistry.subscribeToDescriptorChanges(this.tag,
68
- (_descriptor, newDescriptorWrapper) => {
68
+ descriptor => {
69
69
this.logger.info('signature capture descriptor change!');
70
- this.onDescriptorWrapperChange(newDescriptorWrapper ! as RNC.RSSignatureArkView.DescriptorWrapper )
70
+ this.onDescriptorWrapperChange(descriptor ! as RNC.RSSignatureArkView.Descriptor )
71
71
}
72
72
));
73
73
@@ -127,9 +127,9 @@ export struct SignatureCaptureArkView {
127
127
this.sign.color = this.descriptorWrapper.props.strokeColor.toRGBAString();
128
128
}
129
129
130
- private onDescriptorWrapperChange(descriptorWrapper : RNC.RSSignatureArkView.DescriptorWrapper ) {
130
+ private onDescriptorWrapperChange(descriptor : RNC.RSSignatureArkView.Descriptor ) {
131
131
this.logger.info('descriptor change!');
132
- this.descriptorWrapper = descriptorWrapper ;
132
+ this.descriptorWrapper = new RNC.RSSignatureArkView.DescriptorWrapper(descriptor) ;
133
133
this.setProps();
134
134
}
135
135
You can’t perform that action at this time.
0 commit comments