ReactNative學習記錄--慕課--實戰\新版React Native從入門到實戰打造高質量上線App

學習背景

最近在學習遇到困難,技術在不斷升級;我們在學習遇到問題時候,網上有很多資料是基於老版本,學習速度相當慢,一個簡單問題,也許要兩三天才能解決問題;因此本次學習記錄時間、相關技術版本;學習時間2020年02月份,疫情在家。  

1.電腦環境

   電腦系統:Win10;git版本:git version 2.19.0.windows.1;

 

2.學習資料

ReactNative入門與進階--https://www.imooc.com/learn/808

實戰\新版React Native從入門到實戰打造高質量上線App(再升級)--https://coding.imooc.com/class/304.html#Prchor

3.開啓學習之旅--在imooc上購買了RN教程;

  1. 學習3.1 2-2章節--hello工程--新增了操作:
  • npm start ;
  • 在android studio軟件SDK manage裏面下載android api 27相關;
  • 遇到問題:unable to load script from asset/index.android.bundle問題解決;解決辦法:首先,(你的項目文件夾)\android\app\src\main目錄下新建asset文件夾;然後,在github_advanced目錄執行, react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res。

 

2. git加入;

注意事項:

1.在新建倉庫初期,本地和遠程是兩個不同的倉庫;先執行:git pull origin master --allow-unrelated-histories;這裏看些網上資料,沒有加選項,會報錯fatal: refusing to merge unrelated histories;

2.再執行:git push -u origin master;這裏涉及到,origin 指的就是遠程倉庫,非本地倉庫,在命令行命令中出現的 origin ,指操作是對遠程倉庫操作;

3.推薦使用git bash(linux);對於git cmd(windows)遇到問題:git log輸出十六進制問題,參考鏈接:https://blog.csdn.net/guanking19/article/details/95251726

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章