You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @davetobin! create-react-native-app uses Expo which is wrapping your app already. We've not tried Cavy with Expo yet, but I'll put it on the list so we can get back to you. If you make any headway in the mean time please let us know!
jalada
changed the title
Cavy with create-react-native-app from Official RN docs
Support for create-react-native-app / Expo
Jun 12, 2017
As a workaround, I'm hooking up Cavy right in the main App.js file. Instead of exporting as default the App component, my default export is the AppWrapper component from the example. What the CRNA entrypoint does is call AppRegistry.registerComponent with the default export of the root App.js file.
@donnes I'm sorry, I don't have access to that code anymore; my previous comment is from a bit more than a year ago, and I don't have access to that code anymore. And not even I can make sense of that comment right now, apparently Cavy has changed quite a bit since then, so I'm not sure if it still applies...
Is there a way to tie in Cavy with
create-react-native-app
(https://facebook.github.io/react-native/docs/getting-started.html)?This doesn't seem to use the AppRegistry and I'm not sure how go about adding Cavy. Here are the files given by default:
It would be good to be able to add Cavy and try it out at the most basic level and build from there.
EDIT: I see a similar issue to #23 when I add my own main.js
undefined is not an object (evaluating '_this2.context.testHooks.add')
The text was updated successfully, but these errors were encountered: