NativeBase: Cannot read property 'style' of undefined in native-base/dist/src/basic/Tabs/DefaultTabBar.js

I have gone through these following points

Issue Description

Versions

  • node 12.10.0,
  • npm 6.10.3,
  • react-native 0.61.4,
  • react 16.9.0
  • native-base 2.13.8
  • expo 36.0.0

Expected behaviour

Should work without an error

Actual behaviour

Throws an error

Cannot read property ‘style’ of undefined

in node_modules/native-base/dist/src/basic/Tabs/DefaultTabBar.js

Steps to reproduce

  1. Import <Button> and use as per docs
  2. Simply run expo start

image

Is the bug present in both iOS and Android or in any one of them?

Yes

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Yep. Having the same issue with react-native-web pkg.

Any solution to this?

This happens when I added react-native-web package