Closed rithvikvibhu closed 6 years ago
Also, there's a warning:
Each child in an array or iterator should have a unique "key" prop. Check the render method of 'DefaultTabBar'. See https://fb.me/react-warning-keys for more information
in Button (created by DefaultTabBar)
in DeafultTabBar (created by ScrollableTabView)
in RCTView (created by View)
in ScrollableTabView (created by CustomTabBar)
in RCTView (created by View)
in CustomTabBar (created by ScrollableTabView)
in RCTView (created by View)
in View (created by ScrollableTabView)
in ScrollableTabView (created by *****appnamehere****)
... and stuff
Same here, RN 0.37
Getting the same warning, RN 0.42
Please make a repo showing this bug and I will take a look
Did you fixed it ? i have the same error
So i copied the DefaultTabBar.js to app root and renamed it to CustomTabBar.
Tried importing it like
and changing the import for Button (in CustomTabBar.js):
It works (sort of). The tabs don't show text and the border is blue throughout. I wanted to know why the same piece of code wouldn't work when importing from module and from another file. Any ideas?