- 初始化一個項目,出現這個問題。 之前還好好的。。
在命令行中輸入:
npm install --save-dev babel-preset-react-native@2.1.0
詳細看這裏 –>https://github.com/facebook/react-native/issues/15545
npm install --save-dev babel-preset-react-native@2.1.0
詳細看這裏 –>https://github.com/facebook/react-native/issues/15545
序言 開始研究react-native來弄安卓和IOS ^_^~~~.歡迎騷擾:[email protected] 參考資料地址:https://reactnative.cn/docs/
//相當於button使用 <TouchableHighlight //點擊後的背景顏色 underlayColor="#1FB579"