react-native ios 打包怎么安装到手机中?

react-native ios 打包怎么安装到手机中


叮当猫咪
浏览 2138回答 1
1回答

茅侃侃

react-native&nbsp;ios 打包安装到手机中的方法:1、安装nactiv-cli来完成react-native所运行的环境,安装命令如下:npm install -g react-native-cli2、运行源码抓取命令手机React Native的源码和依赖,提供在xcode中创建的项目之用。react-native init AwesomeProject在xcode中的目录包括:/iOS/AwesomeProject.xcodeproj&nbsp;3、运行电影程序:&nbsp;render() { &nbsp; &nbsp;var movie = MOCKED_MOVIES_DATA[0]; &nbsp; &nbsp;return ( &nbsp; &nbsp; &nbsp;<View style={styles.container}> &nbsp; &nbsp; &nbsp; &nbsp;<Text>{movie.title}</Text> &nbsp; &nbsp; &nbsp; &nbsp;<Text>{movie.year}</Text> &nbsp; &nbsp; &nbsp; &nbsp;<Image source={{uri: movie.posters.thumbnail}} /> &nbsp; &nbsp; &nbsp;</View> &nbsp; &nbsp;); &nbsp;}
打开App,查看更多内容
随时随地看视频慕课网APP