expo在国内用的人应该比较少,反正也没人看,我就随便记录下,给自己看看。
其实跟普通的RN唯一的区别就是安装组件用expo install 其他的基本都一样。expo不需要,pod install.
安装依赖组件
expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
安装组件,根据需要安装
expo install @react-navigation/native
expo install @react-navigation/stack
expo install @react-navigation/bottom-tabs
图标组件安装
expo install @expo/vector-icons