亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

按老師的順序及語法編寫了js文件,運行結果如下??!

https://img1.sycdn.imooc.com//5b4c5cec00011fde12030152.jpg

按老師的順序及語法編寫了js文件,運行結果如下??!


正在回答

2 回答

現在已經是異常渲染了

0 回復 有任何疑惑可以回復我~
/***?Sample?React?Native?App*?https://github.com/facebook/react-native*?@flow*/import?React,?{?Component?}?from?'react';import?{Platform,StyleSheet,Text,View}?from?'react-native';const?instructions?=?Platform.select({ios:?'Press?Cmd+R?to?reload,\n'?+'Cmd+D?or?shake?for?dev?menu',android:?'Double?tap?R?on?your?keyboard?to?reload,\n'?+'Shake?or?press?menu?button?for?dev?menu',});//?新建一個類ES6export?default?class?LifecycleComponent?extends?Component{constructor(props){super(props);console.log("------run------")this.state={count:0,}}componentWillMount(){console.log("------run?componentWillMount------")}componentDidMount(){console.log("------run?componentDidMount------")}componentWillReceiveProps(nextProps){console.log("------run?componentWillReceiveProps------")}shouldComponentUpdate(nextProps,nextState){console.log("------run?shouldComponentUpdate------")return?true;}componentWillUpdate(nextProps,nextState){console.log("------run?componentWillUpdate------")}componentDidUpdate(prevProps,prevState){console.log("------run?componentDidUpdate------")}componentWillUnmount(){console.log("------run?componentWillUnmoun------")}render(){console.log("run")return(<View><Text?style={styles.text1}onPress={()=>{this.setState({count:this.state.count+1,})}}>??hello.LifecycleComponent?holle多少次{this.state.count}</Text></View>);}}const?styles?=?StyleSheet.create({text1:{fontSize:20,backgroundColor:'#f5f',}});


0 回復 有任何疑惑可以回復我~
#1

Talbot3

添代碼某意思
2018-11-25 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
ReactNative入門與進階
  • 參與學習       70463    人
  • 解答問題       168    個

React Native跨平臺技術入門與進階

進入課程

按老師的順序及語法編寫了js文件,運行結果如下?。?/h1> 我要回答 關注問題

微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號