Files
dependabot[bot] 4af1c8a996 Bump elliptic from 6.4.1 to 6.5.3 in /create-react-app-example (#80)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.4.1 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.4.1...v6.5.3)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-01 13:29:58 -07:00
..
2019-03-19 16:11:46 -07:00
2019-04-13 01:07:32 -07:00
2019-03-19 17:24:33 -07:00
2019-03-19 17:24:33 -07:00
2019-03-19 17:24:33 -07:00
2019-03-19 17:24:33 -07:00
2019-03-22 10:55:09 -07:00

Adding Expo

This project was bootstrapped with Create React App.

  • Install React Native for Web and React Native: yarn add react-native-web react-native
  • Create an app.json:
    {
        "expo": {
          "platforms": ["web"]
        }
    }
    
  • Install: yarn add -D babel-preset-expo
  • Create babel.config.js
    module.exports = {
      presets: ['babel-preset-expo'],
    };
    
  • Install the expo-cli with npm i -g expo-cli
  • Start the project with expo start --web
    • You may want to add .expo to your .gitignore.
    • (--web) will automatically open the web page in your browser.
    • Expo will only start the webpack dev server (and not metro) because "web" is the only platform defined in "platforms".
    • You can prevent the debug screen from opening with: --non-interactive
    • Toggle the production environment variable with --no-dev. This will persist commands so remember to turn it off with --dev.

Now you can import any of the react-native-web modules!

import { View } from 'react-native';