How to run dependency commands in Snack

App.js (1141:882)
@react-native-community/geolocation: NativeModule.RNCGeolocation is null. To fix this issue try these steps:
(Device)
• Run react-native link @react-native-community/geolocation in the project root.
• Rebuild and re-run the app.

Where I can run above commands?

Hey @zuhakk, you won’t be able to run commands in Snack in general. More specifically to your question, you won’t be able to use dependencies that require native code configuration in a Snack project. In order to use said library, you would have to use the Bare workflow.

Cheers,
Adam

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.