Closed ramyodev closed 4 weeks ago
Hey,
Thanks for reporting this!
I managed to reproduce something similar on my end. Just want to confirm a couple of things to make sure we're seeing the same issue:
1) Does this happen with any other action URLs?
2) Are you seeing an error like this in your logs before the Malformed Calls error?
ERROR Invariant Violation: [657,"RCTView",{"aspectRatio":"<<NaN>>"}] is not usable as a native method argument
@prsvic Yes I saw that Invariant Violation also haven't seen it with other blinks but also haven't tested too many.
@ramyodev Can you please update @dialectlabs/blinks-react-native
to 0.2.1
and check if the issue still there?
@prsvic Can confirm, its fixed. Thank you!
Issue Summary
An error occurs when certain React components, such as
KeyboardProvider
or components involved in animated transitions, are used in conjunction with the Blinks SDK. This results in exceptions related to malformed calls from JavaScript, indicating potential issues with how parameters or callbacks are being handled across asynchronous operations.Steps to Reproduce
https://dial.to/?action=solana-action:https://checkmate.sendarcade.fun/api/actions/chess
KeyboardProvider
or navigate through screens that trigger re-renders or state updates in components likeFlatList
orVirtualizedList
.Error Message
Initially:
After removing
KeyboardProvider
:Code Context
The issue arises during complex state management and component re-renders which might be triggered by animations or transitions in the UI, affecting the synchronicity of JavaScript calls to native functions.
Suggested Fixes
Environment
0.74.3
react-native-picker-select
version:^9.1.3
@dialectlabs/blinks
version:^0.8.0
@dialectlabs/blinks-react-native
version:^0.2.0