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.

isMounted is deprecated when using tab views

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:13
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
daviscabralcommented, Jun 19, 2018

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.

2reactions
gaearoncommented, Sep 12, 2018

Should be fixed in 0.57.

Read more comments on GitHub >

github_iconTop 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 >

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