今天來講的是最常使用的 List 系列了
這就次以 FlatList 當主角吧
他是在 0.43 之後才出現的「進化版 ListView」
剛開始學習 React Native 的我
第一次就使用到「進化」的版本,多少會自我感覺良好 ((什麼奇怪的感覺…
目前分類:React Native (4)
- Aug 25 Fri 2017 10:29
Willy's Fish教學筆記』React Native 我的資料不見了!? 為什麼使用 FlatList、SectionList、ListView時,明明就設好 data 了,但卻一直找不到資料呢?談談資料的綁定,傳入與取得
- Aug 24 Thu 2017 11:03
Willy's Fish教學筆記』React Native 出現錯誤 Unable to resolve module [A module name] from [PATH] : Module does not exist in the module map or in these directories:/
不知道大家有沒有承接別人 React Native 專案的經驗
這次的問題發生在我從 svn 下拉同事 RN 的專案時
想要 run 的時候發生問題
完整錯誤訊息如下:
Unable to resolve module `react-native-scrollable-tab-view` from `/Users/80005455/Desktop/ResourceCode/SFA3_2.0_RN_Willy/js/view/CarLoadingComponent.js`: Module does not exist in the module map or in these directories:/Users/80005455/Desktop/ResourceCode/SFA3_2.0_RN_Willy/node_modules
- Aug 24 Thu 2017 10:41
Willy's Fish教學筆記』React Native 在打包生成 bundle 文件時,出現 child_process.js:614 throw err ;Error: spawnSync [PATH] EACCES
我們都知道,React Native 在執行的時候
都會生成一個 bundle 文件來載入 js 的 code
例如以 Andorid 來說就是 index.andoird.bundle
這個文件通常都是我們執行 $react-native start 與伺服器連線之後
再輸入下列指令
因為工作需要,所以開始研究了 React Native
不過在第一步:環境的建製上就遇上了問題
這個問題是當我執行 react-native run-android 指令時
卻回傳下列訊息