Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined is not an object(evaluating 'ViewPropTypes.styles') #52

Open
JackSteven opened this issue Jun 28, 2017 · 17 comments
Open

undefined is not an object(evaluating 'ViewPropTypes.styles') #52

JackSteven opened this issue Jun 28, 2017 · 17 comments

Comments

@JackSteven
Copy link

遇到第一个坑:
27022919-c61a9f56-4f82-11e7-9a49-9f3344a75f30

解决方法:
node_modules\react-native-scrollable-tab-view\DefaultTabBar,ScrollableTabBar,index里面的ViewPropTypes改成了View.propTypes

遇到第二个坑:
simulator screen shot 2017 6 28 3 31 13

解决方法:
将 Icon.TabBarItem 换成 TabBarIOS.Item,里面一些属性修改iconName换成icon,selectedIconName换成selectedIcon。

@JackSteven
Copy link
Author

另外一个错误rctcamerarollmanager.getphotos,参考这个:
https://stackoverflow.com/questions/33690208/undefined-ia-not-an-objectevaluating-rctcamerarollmanager-getphotos

@CodingMonkeyzh
Copy link

@JackSteven 这些错误是怎么导致的? 可以理解为 react-native-scrollable-tab-view 自身的 bug 么?

@PengJuWang
Copy link

这个demo我都没运行起来过

@CodingMonkeyzh
Copy link

@PengJuWang 升级下版本:
npm install [email protected]

@icyker
Copy link

icyker commented Aug 8, 2017

第一个坑遇到过,然后用react-native-git-upgrade 进行升级,出现很多冲突,更新修改后,能编译通过并安装。但是闪退,闪退,闪退!求助,怎么破啊

@Amuxiaomu
Copy link

我按照第一个修改了,可还是有问题这个 问题

@MrTung
Copy link

MrTung commented Aug 21, 2017

我的也是还报style的错,咋搞?

@giantss
Copy link

giantss commented Aug 22, 2017

第一个修改错误是有问题的 出现了另一个错误

@windyrain
Copy link
Contributor

ptomasroos/react-native-scrollable-tab-view#643

根据这个react-native插件库里的讨论。

downgrade react-native-scrollable-tab-view. Latest versions not compatible with react-native older than 0.44

  • 将依赖中的react-native-scrollable-tab-view版本指定为0.6.0
  • 重新安装该依赖项

接着我发现了Unrecognized font family ionicons的报错

这个是因为没有link到字体库导致的

react-native link react-native-vector-icons

当执行完后,如果使用的xcode,那么会得到 redefinition of rctloglevel 的报错

  • npm uninstall react-native-vector-icons
  • 并把package.json中的"react-native-vector-icons": "XXX",删掉
  • npm install react-native-vector-icons

程序就可以完美运行了

2017-09-09 6 54 29

@zer0err
Copy link

zer0err commented Sep 11, 2017

summary of how I solved this problem:

  1. run
    npm install [email protected]
  2. run
    react-native link react-native-vector-icons
  3. run
    npm uninstall react-native-vector-icons
  4. delete
    "react-native-vector-icons": "XXX"" in file "package.json"
  5. run
    npm install react-native-vector-icons

thanks.
@windyrain @CodingMonkeyzh

@MilkBiscuit
Copy link

summary of how I solved:

  1. run
    npm uninstall react-native-scrollable-tab-view

  2. run
    npm install [email protected]

  3. run
    npm uninstall react-native-vector-icons

  4. delete ( not necessary, it will be deleted automatically)
    "react-native-vector-icons": "XXX"" in file "package.json"

  5. run
    npm install react-native-vector-icons

  6. run
    react-native link react-native-vector-icons

  7. run
    react-native run-ios

Thanks @ericoda @windyrain

@MrTung
Copy link

MrTung commented Sep 12, 2017

楼上大神正解,thx

@bigy6241
Copy link

楼上正解完美.....多谢

@XuqingLiu
Copy link

楼上正解,thx

@feng-zhang0712
Copy link

feng-zhang0712 commented Nov 28, 2017

@MilkBiscuit problem soved, thanks

@oneMoreTime1357
Copy link

@MilkBiscuit Thanks problem soved

@qikong233
Copy link

really help, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests