Not working with React Native
See original GitHub issueThanks for react-with-styles! It’s working well with Aphrodite so far, but I can’t get it to work in an existing or new React Native (0.33) project. The first problem I run into is having to install babel-preset-airbnb due to this error:
TransformError: /Users/lespozdena/Desktop/AwesomeProject/node_modules/react-with-styles-interface-react-native/lib/reactNativeInterface.js: Couldn't find preset "airbnb" relative to directory "/Users/lespozdena/Desktop/AwesomeProject/node_modules/react-with-styles-interface-react-native"
Clearing that dep lets the app run, but then react-with-styles does not ever deliver the styles prop (either via the default one or a custom-named one). The prop is always undefined. I never had this issue with React/Aphrodite.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6
Top GitHub Comments
@pozdena what we do (with great sadness) is run the following command as an npm
postinstall
script:Revisiting this, the workaround @lelandrichardson originally suggested now works! Unfortunately, I’m not sure what changed on our end.