question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
matias91commented, Oct 17, 2020

It seems they are already working on this issue: https://github.com/GeekyAnts/NativeBase/issues/3264#issuecomment-703404306

1reaction
ilabsllccommented, Jun 6, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property 'style' of undefined ...
The getElementByClassName implies that the selector's name is a class, so you don't need the dot in front of it. Same as you...
Read more >
Cannot read property 'style' of undefined · Issue #253 - GitHub
I just tried to comment out the line 29 of node_modules/react-native-dropdownalert/DropdownAlert.js then it's working well now ! Screenshot 2021 ...
Read more >
Cannot read property 'style' of undefined... — DataTables forums
When I've seen this error before its because the number of columns defined in the JS doesn't match the number of column in...
Read more >
Uncaught TypeError: Cannot read property 'style' of undefined
Uncaught TypeError : Cannot read property 'style' of undefined at _fnCalculateColumnWidths (jquery.dataTables.js:5586)
Read more >
Uncaught TypeError: Cannot read property 'style' of undefined
ive just started learning javascript but when i try run some code i get this error and i cant seem to find out...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found