birkir / react-native-carplay

CarPlay with React Native
https://birkir.dev/react-native-carplay/
MIT License
642 stars 107 forks source link

run example project #92

Closed mustafakameldev closed 2 years ago

mustafakameldev commented 2 years ago

when i used example project i got this error error: Error: While trying to resolve module react-native-carplay from file ../react-native-carplay/example/src/App.tsx, the package ../react-native-carplay/example/node_modules/react-native-carplay/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (../react-native-carplay/example/node_modules/react-native-carplay/lib/index.js. Indeed, none of these files exist:

susonthapa commented 2 years ago

I did run into the issue and it was a stupid mistake. Anyone who is running into this issue here is the fix.

  1. Go to the root directory of the repository.
  2. Run yarn install and then yarn build:dev.
  3. Go to the example directory.
  4. Run yarn install and then yarn start.
  5. Run the app from Xcode.

This should work.