coinjar / react-native-wagmi-charts

A sweet & simple chart library for React Native that will make us feel like We're All Gonna Make It.
MIT License
589 stars 116 forks source link

Tried to synchronously call function error #139

Closed renatomserra closed 1 year ago

renatomserra commented 1 year ago

Hello,

Im trying to use a function i use in other parts of my app, that is a bit more complex to format the text on crosshair based on user preferences but it keeps erroring with Tried to synchronously call function error and im kinda stuck, any ideas?

alternatively Is there any way in the format function to access other fields of the data objects? i could pre-format the data and just access that in the function instead of doing that inflight

renatomserra commented 1 year ago

Solved this by creating an object where the key is the value of each index and the value to this key is the formatted value and accessing that in the worklet