React-native碰到的坑和解决方案

react

React-native碰到的坑和解决方案

<React/RCTXXXXX.h> file no found

1. Clean (cmd+shift+K)

2. Build core React - select React as the scheme in Xcode and build it (cmd+B)

3. Build the library that is failing (e.g. RCTText).

4. Build your app.

no such file or directory XXXX文件找不到

在build phases => complie sources 下面找到文件删了 重新编译

5.BackAndroid已被弃用。请改用BackHandler

6. keyboardShouldPersistTaps={true}废除,改用keyboardShouldPersistTaps='always'

7. SVG画图不要用<use/>会闪退

'config.h' file not found

React-native碰到的坑和解决方案

<React/RCTXXXXX.h> file no found

1. Clean (cmd+shift+K)

2. Build core React - select React as the scheme in Xcode and build it (cmd+B)

3. Build the library that is failing (e.g. RCTText).

4. Build your app.

no such file or directory XXXX文件找不到

在build phases => complie sources 下面找到文件删了 重新编译

5.BackAndroid已被弃用。请改用BackHandler

6. keyboardShouldPersistTaps={true}废除,改用keyboardShouldPersistTaps='always'

7. SVG画图不要用<use/>会闪退

'config.h' file not found

rm -rf node_modules/ && yarn cache clean && yarn install

node_modules/react-native/scripts/ios-install-third-party.sh

cd node_modules/react-native/third-party/glog-0.3.4

./configure

(replace glog-0.3.X with yours)

replace with `NULL`

Remove library libfishhook.a and add again

以上是 React-native碰到的坑和解决方案 的全部内容, 来源链接: utcz.com/z/381791.html

回到顶部