isMounted is deprecated when using tab views
See original GitHub issueI get this whenever I go into my tabbed scene ever since I added it. If I view the two components separately they work fine, it’s adding the tabs which cause it to break. I’ve tried various things like unmountScene={true} (pretty sure it doesn’t do anything)
Should I mute this error, because everything seems to work okay. I’m just wondering if there is something I’m doing wrong, or if this is an actual issue with the package.
"react-native-router-flux": "^4.0.0-beta.28",
"react-navigation": "^1.5.11",
const AppRouter = () => {
return (
<Router>
<Modal key="modal">
<Stack key="root" hideNavBar >
<Drawer key="Drawer" hideNavBar contentComponent={Sidebar} drawerWidth={deviceWidth/1.38}>
<Stack key="MainStack" navBar={Layout} >
<Scene key="Main" component={Main} />
<Scene key="Settings" component={Settings}/>
<Scene key="TVInfo" component={TVInfo}/>
<Scene key="Login" component={Login} />
<Scene key="TabBar" tabs={true} hideTabBar={false}>
<Scene key="Info" hideNavBar={true} title="Info" icon={TabIcon} component={MovieInfo} />
<Scene key="Cast" hideNavBar={true} title="Cast" icon={TabIcon} component={Cast} />
</Scene>
</Stack>
</Drawer>
</Stack>
</Modal>
</Router>
)
}
Sorry for formatting, Markup seems to take my two space tabs as if they were like 4 or 5 spaces.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:13
- Comments:17 (1 by maintainers)
Top Results From Across the Web
FixedDataTable: isMounted is deprecated - Stack Overflow
Using FixedDataTable in my react project and im suprised to see the warning below: warning.js:36 Warning: FixedDataTable: isMounted is ...
Read more >Writing a React hook to cancel promises when a component ...
Thus isMounted() is being deprecated. They recommend you write cancelable promise. A recipe is provided in the same page based on this. It...
Read more >TabView | Apple Developer Documentation
The following example creates a tab view with three tabs, each presenting a custom child view. The first tab has a numeric badge...
Read more >Intent - Android Developers
This constant was deprecated in API level 29. use PackageInstaller instead ... Intended to be used as a tab inside of a containing...
Read more >Diff - platform/frameworks/base.git - Google Git
CharSequence"> +</parameter> +<parameter name="views" type="android.widget. ... public Notification() { @@ -334,7 +324,6 @@ } /** - * @deprecated use {@link ...
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
Btw, hide the warning is not a solution. I don’t consider a warning a blocker in a release, just a heads-up about possible out of date packages and future unsupported code.
Should be fixed in 0.57.