修改了那些

初始化

  1. expo init --template bare-minimum

react-native-unimodules

主要集成了 unimodules

we’ll need to install and configure the react-native-unimodules package to enable you to use packages from the Expo SDK.

https://github.com/expo/expo/tree/master/packages/react-native-unimodules

https://docs.expo.io/bare/installing-unimodules/

  1. import { Asset, Constants, FileSystem } from 'react-native-unimodules';

另外修改了

babel.config.js

  1. module.exports = function(api) {
  2. api.cache(true);
  3. return {
  4. presets: ['babel-preset-expo'],
  5. };
  6. };

tsconfig.json

  1. {
  2. "extends": "expo/tsconfig.base",
  3. "compilerOptions": {
  4. "strict": true
  5. }
  6. }

metro.config.js

  1. // Learn more https://docs.expo.io/guides/customizing-metro
  2. const { getDefaultConfig } = require('expo/metro-config');
  3. module.exports = getDefaultConfig(__dirname);

app.json

  1. {
  2. "name": "mybareApp",
  3. "displayName": "mybareApp",
  4. "expo": {
  5. "name": "mybareApp",
  6. "slug": "mybareApp",
  7. "version": "1.0.0",
  8. "assetBundlePatterns": [
  9. "**/*"
  10. ]
  11. }
  12. }

run

  1. expo run:ios
  2. expo run:android

image.png

expo-updates

Updating your App Over-the-Air