Ian VanSchooten
Chris Cain
Mobile app development with JavaScript
Not a hybrid app, runs actual native code
Learn once, write anywhere
Native Components cannot execute in Node.js
Targeting without CSS selectors
RN Import resolution magic
Resolve require('react-native') to 'react'
Replace native components with React components that render null
Shim all RN APIs with empty functions
Just use react-native-mock
We use Enzyme React testing utilities
No CSS in React Native, how to target components?
Can still use className prop
Or the testId prop (great for Appium testing*)
* but not on Android ( issue)
require('path/img.png') -> path/img@2x.png
component.android.js & component.ios.js
Set a platform env_var to control mocking
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text