coinjar/react-native-wagmi-charts

Exception thrown while executing UI block: -[__NSArrayM objectForKeyedSubscript:]: unrecognized selector sent to instance 0x60000212e730

fjwjogjnkdwjdww opened this issue · 3 comments

Hello! Great library!

Having an issue with LineChart.Gradient that is causing iOS to throw an exception (iOS 16.1 iPhone 14 Pro Max). It seems to be working fine on React Native Web.

The dev environment is:

iOS 16.1
iPhone 14 Pro Max Simulator
Expo 47.0.3
React 18.1.0
React Native 0.70.5

Exception thrown while executing UI block: -[__NSArrayM objectForKeyedSubscript:]: unrecognized selector sent to instance 0x60000212e730

Exception thrown while executing UI block: *** -[__NSArrayM insertObject:atIndex:]: index 1 beyond bounds for empty array

Screenshot 2022-11-13 at 2 49 34 AM

Here is the code:

<LineChart.Provider data={
                    [
                        {
                            timestamp: 1625948100000,
                            value: 33215.25,
                        },
                        {
                            timestamp: 1625947200000,
                            value: 33510.25,
                        },
                        {
                            timestamp: 1625946300000,
                            value: 33545.25,
                        },
                        {
                            timestamp: 1625945400000,
                            value: 33575.25,
                        },
                    ]
                }>
                    <LineChart>
                        <LineChart.Path color={COLORS.NEON}>
                            <LineChart.Gradient />
                        </LineChart.Path>
                        <LineChart.CursorLine color={COLORS.NEON}>
                        </LineChart.CursorLine>
                        <LineChart.CursorCrosshair color={COLORS.NEON}>
                            <LineChart.HoverTrap />
                            <LineChart.Tooltip style={{
                                backgroundColor: '#f2f2f2',
                                borderRadius: 5,
                            }}/>
                        </LineChart.CursorCrosshair>
                    </LineChart>
                </LineChart.Provider>

Thank you

@fjwjogjnkdwjdww having the same problem. I initially started using rainbow and then switched to wagmi-charts provided this was easier to implement.

Having the same issues as well

Same issue happening here