安装

React Native · Learn once, write anywhere

安装依赖

brew install node
brew install watchman

创建项目

npx create-expo-app StickerSmash

为什么用 Expo ?

Expo是一组工具、库和服务,可以通过编写JavaScript来构建本地的iOS和android应用程序。说人话,就是在React Native的基础上再封装了一层,让我们的开发更方便,更快速。

配置代理

npm config set proxy <http://127.0.0.1:6152>
npm config set https-proxy <http://127.0.0.1:6152>

21 使用 FlatList 组件_哔哩哔哩_bilibili