react-native-example
react-native-example copied to clipboard
Error when trying to run expo example
Hi,
Unable to run the demo app from react native repo https://github.com/GetStream/react-native-example
I followed instructions, but I am facing index.js not found in package expo-activity-feed node modules.
Failed building JavaScript bundle. While trying to resolve module
expo-activity-feedfrom file/Users/test/dev/react-native-example/App.js, the package/Users/test/dev/react-native-example/node_modules/expo-activity-feed/package.jsonwas successfully found. However, this package itself specifies amainmodule field that could not be resolved (/Users/test/dev/react-native-example/node_modules/expo-activity-feed/src/index.js
I having the same problem
I have same problem
Same problem. Refer to the screenshot below:

I'm also having there same problem - running on apple silicon in case that is similar to others...
Thanks
@vishalnarkhede any updates as we cannot test GS activity app to evaluate the service? Thanks
seem to be having similar problem
solution: upgrade expo-activity-feed with
expo install expo-activity-feed
before expo start or yarn start
i upgraded that package but then i got a dependency issue with react-native-screens which req. [email protected] (instead of 3.4).
then when i rolled it back to that version i get:
undefined is not an object (evaluating client.currentUser.data)
line 68 in StreamApp.js
also updating to the latest react-native-screens (3.4) and updating the package.json to match i still get the same error with the client.currentUser.data
@jskye did you run yarn run init-data and other commands as specified in README.md ?
I also have to say that this demo is disappointing and I couldn't make other GetStream demos (with Expo only) work besides this one.
i did overlook to get and initialise the credentials and token. but now ive done it and still get the same error. even after redoing install, init, deploy. so not sure why its not finding the client.
TypeError: undefined is not an object (evaluating 'client.currentUser.data')
This error is located at:
in StreamApp (at App.js:28)
in RNCSafeAreaProvider (at SafeAreaContext.tsx:74)
in SafeAreaProvider (at App.js:27)
in App (created by ExpoRoot)
in ExpoRoot (at renderApplication.js:45)
in RCTView (at View.js:34)
in View (at AppContainer.js:106)
in RCTView (at View.js:34)
in View (at AppContainer.js:132)
in AppContainer (at renderApplication.js:39)
oh i just realised there was a bunch of things in step 2 i overlooked also. my bad.