Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_reactNativeSkia.useValue is not a function #12

Open
feri-irawan opened this issue Jun 13, 2024 · 2 comments
Open

_reactNativeSkia.useValue is not a function #12

feri-irawan opened this issue Jun 13, 2024 · 2 comments

Comments

@feri-irawan
Copy link

feri-irawan commented Jun 13, 2024

My package.json dependecies:

    "d3-scale": "^4.0.2",
    "react-native-reanimated": "~3.10.1",
    "react-native-gesture-handler": "^2.16.2",
    "@shopify/react-native-skia": "1.2.3",
    "react-native-skia-charts": "^0.0.60",
    "expo": "~51.0.14",

my screens.tsx

import { ThemedView } from '@/components/ThemedView'
import { LineChart } from 'react-native-skia-charts'

export default function Screens() {
  return (
    <ThemedView>
      <LineChart
        datasets={[
          {
            label: 'Line 1',
            data: [
              { x: '2022-01-01', y: 0 },
              { x: '2022-01-02', y: 10 },
              { x: '2022-01-03', y: 5 },
              { x: '2022-01-04', y: 15 },
              { x: '2022-01-05', y: 20 },
              { x: '2022-01-06', y: 25 },
              { x: '2022-01-07', y: 30 },
            ],
          },
        ]}
        fontFile={require('../../assets/fonts/SpaceMono-Regular.ttf')}
      />
    </ThemedView>
  )
}

image

@vladanyes
Copy link
Owner

hey @feri-irawan , unfortunately, this lib uses outdated skia version, try to downgrade skia.
"@shopify/react-native-skia": "0.1.156",

@feri-irawan
Copy link
Author

Thanks bro, I think this project is awesome and should be updated for compatibility with the latest version of Skia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants