Skip to content

Your mobile app, and your web application, sharing the same package.json.

License

Notifications You must be signed in to change notification settings

mingderwang/expo-next-shared

Repository files navigation

One App, many places

screen shot 2017-10-20 at 5 35 21 pm

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 and react-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

Start NextJS

yarn
yarn run dev

Start Expo

npm install -g exp
yarn
exp start

Differences

The screenshot below captures some of the differences between React Native and React. Some notable examples are styles versus className with a css method.

screen shot 2017-10-20 at 5 04 04 pm

Questions?

Leave an issue or ping me at @meanJim

About

Your mobile app, and your web application, sharing the same package.json.

Resources

License

Stars

Watchers

Forks

Packages

No packages published