Comments (5)
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!
from cavy.
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.
from cavy.
Hello @mandx can you provide an example about this workaround?
Other question, you're using CRNA
or expo init
?
Thanks!
from cavy.
@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...
from cavy.
@mandx Ohh, ok you're right!
Thanks!
from cavy.
Related Issues (20)
- Call methods from wrapped Cavy components (multiple refs ?) HOT 3
- spec.press resulting in error for non Button components HOT 7
- Can't see test outputs in expo project HOT 3
- Problems with running it on Wndows HOT 3
- Passing an object ref as second argument to generateTestHook doesn't work HOT 4
- React Legacy API string refs unsupported
- Problem using redux form HOT 4
- Add the possibility to start a test from a deepLink HOT 4
- Testing on real device logs not showing HOT 2
- component.props.onChange' is undefined HOT 3
- React Navigation doesn't unmount previous screens, causes `spec.findComponent` to return true. HOT 2
- Redux Action Dispatch from a Spec HOT 1
- Future of Cavy and Community HOT 1
- Can't close modals of react-native-modal-datetime-picker package HOT 1
- Update Peer Deps to support React 17+ HOT 1
- No response from Cavy HOT 2
- Wrapping TextInput and using another ref causing error
- Pressable elements are turns to double tap
- Cavy test just launches the app HOT 1
- [Cavy + Expo] iOS system prompt is blocking tests execution for cavy run-ios --skipbuild
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cavy.