Remove dependency on React Native's `TabBarIOS`
See original GitHub issuereact-native-web
removed TabBarIOS
in their recent 0.13.0
release, citing that it is a deprecated React Native API. Most UI libraries that support both native and web are using react-native-vector-icons
and react-native-web
to bring support to web. Unfortunately, react-native-vector-icons
still has a dependency on TabBarIOS
making it incompatible with the most recent versions of react-native-web
. Is it possible to break this dependency in a future version, so we can all use the latest versions of react-native-web
?
(There may be workarounds to this issue that I’m not aware of, but I couldn’t come up with any)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:13
- Comments:5
Top Results From Across the Web
How do I down grade my react navigation in a current react ...
A simple way to do it would be to uninstall the current react-navigation dependencies you have by running npm uninstall react-navigation . That ......
Read more >react-native-tab-view - npm
A cross-platform Tab View component for React Native. Implemented using react-native-pager-view on Android & iOS, and PanResponder on Web, ...
Read more >Bottom Tabs Navigator | React Navigation
A simple tab bar on the bottom of the screen that lets you switch between different routes. Routes are lazily initialized -- their...
Read more >How to Create a Custom Tab Bar in React Native - Crowdbotics
React Native is an amazing tool for creating beautiful, ... Then, for iOS, install the CocoaPods for all these dependencies by navigating ...
Read more >3 Ways to Hide Navigation Bar in React Native Application
If you are making an application with a React Navigation StackNavigator, you can find a NavigationBar/ ActionBar on the top of the screen....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you’re stuck on this issue, and just need a short-term workaround, you can depend on a fork of
react-native-vector-icons
that simply removesTabBarItemIOS
andTabBarItem
.yarn add @ovaeasy/react-native-vector-icons
and then add it to your webpack config aliases:
@brandonpearcy thanks for the workaround
For anyone using
react-native-web
and targeting both web/android, I ran into this error when compiling for android when using brandonpearcy’s forked repothe workaround was to add a
react-native.config.js
:Also
TabBarIOS
was removed back inreact-native@0.59
and probably shouldn’t exist in newer releases