Above is a preview of a simple glossary app.
Today it is possible for a NextJS and an Expo to live in the same codebase!
- The only differences now are React Native and React Web components.
- We can't share styles. In this example
glamor/aphrodite
andreact-native
feel similar, but are different once you begin working with style properties. - Share all other JavaScript.
- Redux is a great candidate for this!
- Share a package.json
- Share node_modules
- View it on the web: https://expo-next-shared.herokuapp.com/
- You can easily deploy your own to the web.
heroku apps:create your-app-name
git push heroku master
.
yarn
yarn run dev
- View it on Expo.io: https://expo.io/@jimmylee/expo-next-shared
npm install -g exp
yarn
exp start
The screenshot below captures some of the differences between React Native and React. Some notable examples are styles
versus className
with a css
method.
Leave an issue or ping me at @meanJim