ReactNative入门--TodoApp项目源码

Publish: August 31, 2022 Category: WEB No Comments

安装 react-native-cli

npm install -g react-native-cli

初始化项目TodoApp

#react-native init TodoApp 会报错 TypeError: cli.init is not a function
react-native init TodoApp

# 如果出现上面的错误则通过下面的方式解决
# 试着指定版本
npx react-native init TodoApp --version 0.68.2

运行Android

react-native run-android

运行IOS应用

react-native run-ios

React Native In Action React Native 实战 TodoApp项目源码

https://github.com/yinlianwei/react-native-in-action-TodoApp

Tags: react, react-native

Related Posts:

Leave a Comment