修改了那些
初始化
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/
import { Asset, Constants, FileSystem } from 'react-native-unimodules';
另外修改了
babel.config.js
module.exports = function(api) {api.cache(true);return {presets: ['babel-preset-expo'],};};
tsconfig.json
{"extends": "expo/tsconfig.base","compilerOptions": {"strict": true}}
metro.config.js
// Learn more https://docs.expo.io/guides/customizing-metroconst { getDefaultConfig } = require('expo/metro-config');module.exports = getDefaultConfig(__dirname);
app.json
{"name": "mybareApp","displayName": "mybareApp","expo": {"name": "mybareApp","slug": "mybareApp","version": "1.0.0","assetBundlePatterns": ["**/*"]}}
run
expo run:iosexpo run:android

