react-native-typewriter
react-native-typewriter copied to clipboard
Emoji icon crash with error "The data couldn’t be read because it isn’t in the correct format"
Hi, there! Emoji icon crash with error, any ideas how to fix without removing emoji icons? Thanks in advance! Same thing outside TypeWriter tag works well.
<TypeWriter typing={1} minDelay={typeSpeed} maxDelay={typeSpeed} onTypingEnd={onTypingEnd} style={styles.outputText}> {text + '😎'} </TypeWriter>
RN 0.64
`The data couldn’t be read because it isn’t in the correct format.
RCTFatal -[RCTCxxBridge handleError:] __21-[RCTCxxBridge start]_block_invoke invocation function for block in facebook::react::(anonymous namespace)::RCTObjcExecutor::RCTObjcExecutor(id<RCTJavaScriptExecutor>, void (NSError*) block_pointer, std::__1::shared_ptrfacebook::react::MessageQueueThread, std::__1facebook::react::ExecutorDelegate) __58-[RCTWebSocketExecutor _executeJSCall:arguments:callback:]_block_invoke -[RCTWebSocketExecutor webSocket:didReceiveMessage:] __33-[RCTSRWebSocket _handleMessage:]_block_invoke _dispatch_call_block_and_release _dispatch_client_callout _dispatch_lane_serial_drain _dispatch_lane_invoke _dispatch_workloop_worker_thread _pthread_wqthread start_wqthread `
temp solution is just remove icons 'Smile😀'.replace(/\p{Emoji}/gu, '');
sorry, close please, found the reason crash only in debug mode