Navigation is getting slower and slower Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!React Native - React Navigation slow transitions when nesting navigatorsShow splash screen before show main screen in react native without using 3rd party libraryReact-Navigation: Navigate screen when DeclaredHow to push a new scene using react-navigation?I am using React-native and node js.I am not able to navigate from one screen to another after getting response from Node jsComponent won't stay wrapped within bounds (React Native)React-Native error adding a video using expo to the app.js for backgroundNot able to navigate to other page in react nativeHow to fix this error 'undefined is not an object'?How to add an image to Header of Navigation Drawer in React Native?react-navigation - Passing params into nested navigator (Getting param in Drawer component but NOT getting it in main routs)
Is multiple magic items in one inherently imbalanced?
Does the Mueller report show a conspiracy between Russia and the Trump Campaign?
What would you call this weird metallic apparatus that allows you to lift people?
Can you force honesty by using the Speak with Dead and Zone of Truth spells together?
Why is a lens darker than other ones when applying the same settings?
Does the Black Tentacles spell do damage twice at the start of turn to an already restrained creature?
Why are vacuum tubes still used in amateur radios?
Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?
Why weren't discrete x86 CPUs ever used in game hardware?
A proverb that is used to imply that you have unexpectedly faced a big problem
One-one communication
What is the "studentd" process?
Flight departed from the gate 5 min before scheduled departure time. Refund options
Trying to understand entropy as a novice in thermodynamics
My mentor says to set image to Fine instead of RAW — how is this different from JPG?
Differences to CCompactSize and CVarInt
How does the math work when buying airline miles?
Where is the Next Backup Size entry on iOS 12?
Understanding p-Values using an example
The test team as an enemy of development? And how can this be avoided?
"klopfte jemand" or "jemand klopfte"?
Are the endpoints of the domain of a function counted as critical points?
How to force a browser when connecting to a specific domain to be https only using only the client machine?
Sally's older brother
Navigation is getting slower and slower
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!React Native - React Navigation slow transitions when nesting navigatorsShow splash screen before show main screen in react native without using 3rd party libraryReact-Navigation: Navigate screen when DeclaredHow to push a new scene using react-navigation?I am using React-native and node js.I am not able to navigate from one screen to another after getting response from Node jsComponent won't stay wrapped within bounds (React Native)React-Native error adding a video using expo to the app.js for backgroundNot able to navigate to other page in react nativeHow to fix this error 'undefined is not an object'?How to add an image to Header of Navigation Drawer in React Native?react-navigation - Passing params into nested navigator (Getting param in Drawer component but NOT getting it in main routs)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
When I first launch the app, it's quick and responsive. But when I navigate, it's getting slower and slower. Even if i navigate between main screen and second screen recursively. First navigation is instant, but 10th is already taking a second, and the whole app is getting slow. I have a suspicion that navigation is the cause. Because if I don't do anything. the app just running, it's fast until I start to navigate. This happens on android with much greater scale. On iOS (at least on emulator) the issue is only slightly noticeable after a lot of navigations.
As far as I understand, every time I navigate somewhere, new screen is added on top of the stack. All my navigations are made like
this.props.navigation.navigate('Home'), sometimes with props. So maybe this is the cause. If it is, is there a way to just reset the stack every time I go back to home screen?
This is my Navigator.js
import React, Component from 'react'
import Platform, Dimensions from 'react-native';
import createDrawerNavigator, createAppContainer from 'react-navigation'
import HomeScreen from '../screens/HomeScreen'
import ExercisesScreen from '../screens/ExercisesScreen'
import SettingsScreen from '../screens/SettingsScreen'
import IntakeScreen from '../screens/IntakeScreen'
import EmotionsScreen from '../screens/EmotionsScreen'
import MenuDrawer from './MenuDrawer';
import ProblemsScreen from '../screens/ProblemsScreen';
import PainScreen from '../screens/PainScreen';
import ActivityScreen from '../screens/ActivityScreen';
import ExerciseWalkingScreen from '../screens/ExerciseWalkingScreen'
import ExerciseStairsScreen from '../screens/ExerciseStairsScreen'
import ExerciseOrthostasisScreen from '../screens/ExerciseOrthostasisScreen';
import LoginScreen from '../screens/LoginScreen';
import ProfileScreen from '../screens/ProfileScreen';
import TimePickScreen from '../screens/TimePickScreen';
const height, width = Dimensions.get('window')
const DrawerConfig =
drawerWidth: width * 0.637,
contentComponent: ( navigation ) =>
return (
<MenuDrawer navigation=navigation />
)
const DrawerNavigator = createDrawerNavigator(
Home:
screen: HomeScreen
,
Exercises:
screen: ExercisesScreen
,
Settings:
screen: SettingsScreen
,
Intake:
screen: IntakeScreen
,
Emotions:
screen: EmotionsScreen
,
Problems:
screen: ProblemsScreen
,
Pain:
screen: PainScreen
,
Activity:
screen: ActivityScreen
,
WalkingExercise:
screen: ExerciseWalkingScreen
,
StairsExercise:
screen: ExerciseStairsScreen
,
OrthostasisExercise:
screen: ExerciseOrthostasisScreen
,
Profile:
screen: ProfileScreen
,
TimePickScreen:
screen: TimePickScreen
, DrawerConfig)
export default createAppContainer(DrawerNavigator)
I have another navigator with one login screen to show if user is not signed in. But I don't think it's relevant.
This is a content of my HomeScreen.js
import React, Component from 'react';
import Platform, StyleSheet, Text, View from 'react-native';
import Toolbar from '../components/Toolbar'
import ExercisesTile from '../components/tiles/ExercisesTile'
import ActivityItem from '../components/ActivityItem'
import IntakeTile from '../components/tiles/IntakeTile';
import EmotionsTile from '../components/tiles/EmotionsTile';
import ProblemsTile from '../components/tiles/ProblemsTile';
import PainTile from '../components/tiles/PainTile';
import ActivityTile from '../components/tiles/ActivityTile';
type Props = ;
export default class HomeScreen extends Component<Props>
render()
return (
<View style=styles.container>
<Toolbar text='Home' navigation=this.props.navigation />
<View style=styles.activityBox>
<ExercisesTile navigation=this.props.navigation />
<IntakeTile navigation=this.props.navigation />
<EmotionsTile navigation=this.props.navigation />
<ProblemsTile navigation=this.props.navigation />
<PainTile navigation=this.props.navigation />
<ActivityTile navigation=this.props.navigation />
</View>
</View>
);
const styles = StyleSheet.create(
container:
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#fff',
,
activityBox:
marginTop: 10,
flex: 1,
flexDirection: 'row',
flexWrap: 'wrap',
backgroundColor: 'white',
justifyContent: 'center'
);
and just for reference, Settings Screen, which is just completely empty
import React, Component from 'react';
import Platform, StyleSheet, Text, View, Alert, AsyncStorage, Button from 'react-native';
import Toolbar from '../components/Toolbar'
type Props = ;
export default class SettingsScreen extends Component<Props>
render()
return (
<View style=styles.container>
<Toolbar text='Settings' navigation=this.props.navigation />
</View>
);
const styles = StyleSheet.create(
container:
flex: 1,
backgroundColor: "#fff",
,
welcome:
fontSize: 20,
textAlign: 'center',
margin: 10,
);
Navigating between these 2 screens back and forth are gettings slower and slower each time.
react-native react-navigation react-navigation-drawer
|
show 1 more comment
When I first launch the app, it's quick and responsive. But when I navigate, it's getting slower and slower. Even if i navigate between main screen and second screen recursively. First navigation is instant, but 10th is already taking a second, and the whole app is getting slow. I have a suspicion that navigation is the cause. Because if I don't do anything. the app just running, it's fast until I start to navigate. This happens on android with much greater scale. On iOS (at least on emulator) the issue is only slightly noticeable after a lot of navigations.
As far as I understand, every time I navigate somewhere, new screen is added on top of the stack. All my navigations are made like
this.props.navigation.navigate('Home'), sometimes with props. So maybe this is the cause. If it is, is there a way to just reset the stack every time I go back to home screen?
This is my Navigator.js
import React, Component from 'react'
import Platform, Dimensions from 'react-native';
import createDrawerNavigator, createAppContainer from 'react-navigation'
import HomeScreen from '../screens/HomeScreen'
import ExercisesScreen from '../screens/ExercisesScreen'
import SettingsScreen from '../screens/SettingsScreen'
import IntakeScreen from '../screens/IntakeScreen'
import EmotionsScreen from '../screens/EmotionsScreen'
import MenuDrawer from './MenuDrawer';
import ProblemsScreen from '../screens/ProblemsScreen';
import PainScreen from '../screens/PainScreen';
import ActivityScreen from '../screens/ActivityScreen';
import ExerciseWalkingScreen from '../screens/ExerciseWalkingScreen'
import ExerciseStairsScreen from '../screens/ExerciseStairsScreen'
import ExerciseOrthostasisScreen from '../screens/ExerciseOrthostasisScreen';
import LoginScreen from '../screens/LoginScreen';
import ProfileScreen from '../screens/ProfileScreen';
import TimePickScreen from '../screens/TimePickScreen';
const height, width = Dimensions.get('window')
const DrawerConfig =
drawerWidth: width * 0.637,
contentComponent: ( navigation ) =>
return (
<MenuDrawer navigation=navigation />
)
const DrawerNavigator = createDrawerNavigator(
Home:
screen: HomeScreen
,
Exercises:
screen: ExercisesScreen
,
Settings:
screen: SettingsScreen
,
Intake:
screen: IntakeScreen
,
Emotions:
screen: EmotionsScreen
,
Problems:
screen: ProblemsScreen
,
Pain:
screen: PainScreen
,
Activity:
screen: ActivityScreen
,
WalkingExercise:
screen: ExerciseWalkingScreen
,
StairsExercise:
screen: ExerciseStairsScreen
,
OrthostasisExercise:
screen: ExerciseOrthostasisScreen
,
Profile:
screen: ProfileScreen
,
TimePickScreen:
screen: TimePickScreen
, DrawerConfig)
export default createAppContainer(DrawerNavigator)
I have another navigator with one login screen to show if user is not signed in. But I don't think it's relevant.
This is a content of my HomeScreen.js
import React, Component from 'react';
import Platform, StyleSheet, Text, View from 'react-native';
import Toolbar from '../components/Toolbar'
import ExercisesTile from '../components/tiles/ExercisesTile'
import ActivityItem from '../components/ActivityItem'
import IntakeTile from '../components/tiles/IntakeTile';
import EmotionsTile from '../components/tiles/EmotionsTile';
import ProblemsTile from '../components/tiles/ProblemsTile';
import PainTile from '../components/tiles/PainTile';
import ActivityTile from '../components/tiles/ActivityTile';
type Props = ;
export default class HomeScreen extends Component<Props>
render()
return (
<View style=styles.container>
<Toolbar text='Home' navigation=this.props.navigation />
<View style=styles.activityBox>
<ExercisesTile navigation=this.props.navigation />
<IntakeTile navigation=this.props.navigation />
<EmotionsTile navigation=this.props.navigation />
<ProblemsTile navigation=this.props.navigation />
<PainTile navigation=this.props.navigation />
<ActivityTile navigation=this.props.navigation />
</View>
</View>
);
const styles = StyleSheet.create(
container:
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#fff',
,
activityBox:
marginTop: 10,
flex: 1,
flexDirection: 'row',
flexWrap: 'wrap',
backgroundColor: 'white',
justifyContent: 'center'
);
and just for reference, Settings Screen, which is just completely empty
import React, Component from 'react';
import Platform, StyleSheet, Text, View, Alert, AsyncStorage, Button from 'react-native';
import Toolbar from '../components/Toolbar'
type Props = ;
export default class SettingsScreen extends Component<Props>
render()
return (
<View style=styles.container>
<Toolbar text='Settings' navigation=this.props.navigation />
</View>
);
const styles = StyleSheet.create(
container:
flex: 1,
backgroundColor: "#fff",
,
welcome:
fontSize: 20,
textAlign: 'center',
margin: 10,
);
Navigating between these 2 screens back and forth are gettings slower and slower each time.
react-native react-navigation react-navigation-drawer
Are all your screens within a single stack? It might be helpful to post how your routes are configured.
– Sean Wang
Mar 8 at 23:26
Yes they are. I posted my Navigator.js file
– irondsd
Mar 9 at 0:12
Check google.com/url?sa=t&source=web&rct=j&url=https://…
– Amas
Mar 9 at 3:11
A lot depends on what you are doing in each of your screens. Are they connected to redux?
– 10101010
Mar 9 at 6:36
No, they are not. Some of the screens are just empty yet, but navigation is still getting slow. Between home screen with 6 pretty simple components and empty screen. After 5 times going back and forth, it's noticeably slow. I checked the article, but they mention complex screens, which is not the case for me, all of my screens are simple. So the issue is different.
– irondsd
Mar 9 at 8:49
|
show 1 more comment
When I first launch the app, it's quick and responsive. But when I navigate, it's getting slower and slower. Even if i navigate between main screen and second screen recursively. First navigation is instant, but 10th is already taking a second, and the whole app is getting slow. I have a suspicion that navigation is the cause. Because if I don't do anything. the app just running, it's fast until I start to navigate. This happens on android with much greater scale. On iOS (at least on emulator) the issue is only slightly noticeable after a lot of navigations.
As far as I understand, every time I navigate somewhere, new screen is added on top of the stack. All my navigations are made like
this.props.navigation.navigate('Home'), sometimes with props. So maybe this is the cause. If it is, is there a way to just reset the stack every time I go back to home screen?
This is my Navigator.js
import React, Component from 'react'
import Platform, Dimensions from 'react-native';
import createDrawerNavigator, createAppContainer from 'react-navigation'
import HomeScreen from '../screens/HomeScreen'
import ExercisesScreen from '../screens/ExercisesScreen'
import SettingsScreen from '../screens/SettingsScreen'
import IntakeScreen from '../screens/IntakeScreen'
import EmotionsScreen from '../screens/EmotionsScreen'
import MenuDrawer from './MenuDrawer';
import ProblemsScreen from '../screens/ProblemsScreen';
import PainScreen from '../screens/PainScreen';
import ActivityScreen from '../screens/ActivityScreen';
import ExerciseWalkingScreen from '../screens/ExerciseWalkingScreen'
import ExerciseStairsScreen from '../screens/ExerciseStairsScreen'
import ExerciseOrthostasisScreen from '../screens/ExerciseOrthostasisScreen';
import LoginScreen from '../screens/LoginScreen';
import ProfileScreen from '../screens/ProfileScreen';
import TimePickScreen from '../screens/TimePickScreen';
const height, width = Dimensions.get('window')
const DrawerConfig =
drawerWidth: width * 0.637,
contentComponent: ( navigation ) =>
return (
<MenuDrawer navigation=navigation />
)
const DrawerNavigator = createDrawerNavigator(
Home:
screen: HomeScreen
,
Exercises:
screen: ExercisesScreen
,
Settings:
screen: SettingsScreen
,
Intake:
screen: IntakeScreen
,
Emotions:
screen: EmotionsScreen
,
Problems:
screen: ProblemsScreen
,
Pain:
screen: PainScreen
,
Activity:
screen: ActivityScreen
,
WalkingExercise:
screen: ExerciseWalkingScreen
,
StairsExercise:
screen: ExerciseStairsScreen
,
OrthostasisExercise:
screen: ExerciseOrthostasisScreen
,
Profile:
screen: ProfileScreen
,
TimePickScreen:
screen: TimePickScreen
, DrawerConfig)
export default createAppContainer(DrawerNavigator)
I have another navigator with one login screen to show if user is not signed in. But I don't think it's relevant.
This is a content of my HomeScreen.js
import React, Component from 'react';
import Platform, StyleSheet, Text, View from 'react-native';
import Toolbar from '../components/Toolbar'
import ExercisesTile from '../components/tiles/ExercisesTile'
import ActivityItem from '../components/ActivityItem'
import IntakeTile from '../components/tiles/IntakeTile';
import EmotionsTile from '../components/tiles/EmotionsTile';
import ProblemsTile from '../components/tiles/ProblemsTile';
import PainTile from '../components/tiles/PainTile';
import ActivityTile from '../components/tiles/ActivityTile';
type Props = ;
export default class HomeScreen extends Component<Props>
render()
return (
<View style=styles.container>
<Toolbar text='Home' navigation=this.props.navigation />
<View style=styles.activityBox>
<ExercisesTile navigation=this.props.navigation />
<IntakeTile navigation=this.props.navigation />
<EmotionsTile navigation=this.props.navigation />
<ProblemsTile navigation=this.props.navigation />
<PainTile navigation=this.props.navigation />
<ActivityTile navigation=this.props.navigation />
</View>
</View>
);
const styles = StyleSheet.create(
container:
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#fff',
,
activityBox:
marginTop: 10,
flex: 1,
flexDirection: 'row',
flexWrap: 'wrap',
backgroundColor: 'white',
justifyContent: 'center'
);
and just for reference, Settings Screen, which is just completely empty
import React, Component from 'react';
import Platform, StyleSheet, Text, View, Alert, AsyncStorage, Button from 'react-native';
import Toolbar from '../components/Toolbar'
type Props = ;
export default class SettingsScreen extends Component<Props>
render()
return (
<View style=styles.container>
<Toolbar text='Settings' navigation=this.props.navigation />
</View>
);
const styles = StyleSheet.create(
container:
flex: 1,
backgroundColor: "#fff",
,
welcome:
fontSize: 20,
textAlign: 'center',
margin: 10,
);
Navigating between these 2 screens back and forth are gettings slower and slower each time.
react-native react-navigation react-navigation-drawer
When I first launch the app, it's quick and responsive. But when I navigate, it's getting slower and slower. Even if i navigate between main screen and second screen recursively. First navigation is instant, but 10th is already taking a second, and the whole app is getting slow. I have a suspicion that navigation is the cause. Because if I don't do anything. the app just running, it's fast until I start to navigate. This happens on android with much greater scale. On iOS (at least on emulator) the issue is only slightly noticeable after a lot of navigations.
As far as I understand, every time I navigate somewhere, new screen is added on top of the stack. All my navigations are made like
this.props.navigation.navigate('Home'), sometimes with props. So maybe this is the cause. If it is, is there a way to just reset the stack every time I go back to home screen?
This is my Navigator.js
import React, Component from 'react'
import Platform, Dimensions from 'react-native';
import createDrawerNavigator, createAppContainer from 'react-navigation'
import HomeScreen from '../screens/HomeScreen'
import ExercisesScreen from '../screens/ExercisesScreen'
import SettingsScreen from '../screens/SettingsScreen'
import IntakeScreen from '../screens/IntakeScreen'
import EmotionsScreen from '../screens/EmotionsScreen'
import MenuDrawer from './MenuDrawer';
import ProblemsScreen from '../screens/ProblemsScreen';
import PainScreen from '../screens/PainScreen';
import ActivityScreen from '../screens/ActivityScreen';
import ExerciseWalkingScreen from '../screens/ExerciseWalkingScreen'
import ExerciseStairsScreen from '../screens/ExerciseStairsScreen'
import ExerciseOrthostasisScreen from '../screens/ExerciseOrthostasisScreen';
import LoginScreen from '../screens/LoginScreen';
import ProfileScreen from '../screens/ProfileScreen';
import TimePickScreen from '../screens/TimePickScreen';
const height, width = Dimensions.get('window')
const DrawerConfig =
drawerWidth: width * 0.637,
contentComponent: ( navigation ) =>
return (
<MenuDrawer navigation=navigation />
)
const DrawerNavigator = createDrawerNavigator(
Home:
screen: HomeScreen
,
Exercises:
screen: ExercisesScreen
,
Settings:
screen: SettingsScreen
,
Intake:
screen: IntakeScreen
,
Emotions:
screen: EmotionsScreen
,
Problems:
screen: ProblemsScreen
,
Pain:
screen: PainScreen
,
Activity:
screen: ActivityScreen
,
WalkingExercise:
screen: ExerciseWalkingScreen
,
StairsExercise:
screen: ExerciseStairsScreen
,
OrthostasisExercise:
screen: ExerciseOrthostasisScreen
,
Profile:
screen: ProfileScreen
,
TimePickScreen:
screen: TimePickScreen
, DrawerConfig)
export default createAppContainer(DrawerNavigator)
I have another navigator with one login screen to show if user is not signed in. But I don't think it's relevant.
This is a content of my HomeScreen.js
import React, Component from 'react';
import Platform, StyleSheet, Text, View from 'react-native';
import Toolbar from '../components/Toolbar'
import ExercisesTile from '../components/tiles/ExercisesTile'
import ActivityItem from '../components/ActivityItem'
import IntakeTile from '../components/tiles/IntakeTile';
import EmotionsTile from '../components/tiles/EmotionsTile';
import ProblemsTile from '../components/tiles/ProblemsTile';
import PainTile from '../components/tiles/PainTile';
import ActivityTile from '../components/tiles/ActivityTile';
type Props = ;
export default class HomeScreen extends Component<Props>
render()
return (
<View style=styles.container>
<Toolbar text='Home' navigation=this.props.navigation />
<View style=styles.activityBox>
<ExercisesTile navigation=this.props.navigation />
<IntakeTile navigation=this.props.navigation />
<EmotionsTile navigation=this.props.navigation />
<ProblemsTile navigation=this.props.navigation />
<PainTile navigation=this.props.navigation />
<ActivityTile navigation=this.props.navigation />
</View>
</View>
);
const styles = StyleSheet.create(
container:
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#fff',
,
activityBox:
marginTop: 10,
flex: 1,
flexDirection: 'row',
flexWrap: 'wrap',
backgroundColor: 'white',
justifyContent: 'center'
);
and just for reference, Settings Screen, which is just completely empty
import React, Component from 'react';
import Platform, StyleSheet, Text, View, Alert, AsyncStorage, Button from 'react-native';
import Toolbar from '../components/Toolbar'
type Props = ;
export default class SettingsScreen extends Component<Props>
render()
return (
<View style=styles.container>
<Toolbar text='Settings' navigation=this.props.navigation />
</View>
);
const styles = StyleSheet.create(
container:
flex: 1,
backgroundColor: "#fff",
,
welcome:
fontSize: 20,
textAlign: 'center',
margin: 10,
);
Navigating between these 2 screens back and forth are gettings slower and slower each time.
react-native react-navigation react-navigation-drawer
react-native react-navigation react-navigation-drawer
edited Mar 9 at 8:53
irondsd
asked Mar 8 at 23:05
irondsdirondsd
84312
84312
Are all your screens within a single stack? It might be helpful to post how your routes are configured.
– Sean Wang
Mar 8 at 23:26
Yes they are. I posted my Navigator.js file
– irondsd
Mar 9 at 0:12
Check google.com/url?sa=t&source=web&rct=j&url=https://…
– Amas
Mar 9 at 3:11
A lot depends on what you are doing in each of your screens. Are they connected to redux?
– 10101010
Mar 9 at 6:36
No, they are not. Some of the screens are just empty yet, but navigation is still getting slow. Between home screen with 6 pretty simple components and empty screen. After 5 times going back and forth, it's noticeably slow. I checked the article, but they mention complex screens, which is not the case for me, all of my screens are simple. So the issue is different.
– irondsd
Mar 9 at 8:49
|
show 1 more comment
Are all your screens within a single stack? It might be helpful to post how your routes are configured.
– Sean Wang
Mar 8 at 23:26
Yes they are. I posted my Navigator.js file
– irondsd
Mar 9 at 0:12
Check google.com/url?sa=t&source=web&rct=j&url=https://…
– Amas
Mar 9 at 3:11
A lot depends on what you are doing in each of your screens. Are they connected to redux?
– 10101010
Mar 9 at 6:36
No, they are not. Some of the screens are just empty yet, but navigation is still getting slow. Between home screen with 6 pretty simple components and empty screen. After 5 times going back and forth, it's noticeably slow. I checked the article, but they mention complex screens, which is not the case for me, all of my screens are simple. So the issue is different.
– irondsd
Mar 9 at 8:49
Are all your screens within a single stack? It might be helpful to post how your routes are configured.
– Sean Wang
Mar 8 at 23:26
Are all your screens within a single stack? It might be helpful to post how your routes are configured.
– Sean Wang
Mar 8 at 23:26
Yes they are. I posted my Navigator.js file
– irondsd
Mar 9 at 0:12
Yes they are. I posted my Navigator.js file
– irondsd
Mar 9 at 0:12
Check google.com/url?sa=t&source=web&rct=j&url=https://…
– Amas
Mar 9 at 3:11
Check google.com/url?sa=t&source=web&rct=j&url=https://…
– Amas
Mar 9 at 3:11
A lot depends on what you are doing in each of your screens. Are they connected to redux?
– 10101010
Mar 9 at 6:36
A lot depends on what you are doing in each of your screens. Are they connected to redux?
– 10101010
Mar 9 at 6:36
No, they are not. Some of the screens are just empty yet, but navigation is still getting slow. Between home screen with 6 pretty simple components and empty screen. After 5 times going back and forth, it's noticeably slow. I checked the article, but they mention complex screens, which is not the case for me, all of my screens are simple. So the issue is different.
– irondsd
Mar 9 at 8:49
No, they are not. Some of the screens are just empty yet, but navigation is still getting slow. Between home screen with 6 pretty simple components and empty screen. After 5 times going back and forth, it's noticeably slow. I checked the article, but they mention complex screens, which is not the case for me, all of my screens are simple. So the issue is different.
– irondsd
Mar 9 at 8:49
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55072225%2fnavigation-is-getting-slower-and-slower%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55072225%2fnavigation-is-getting-slower-and-slower%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are all your screens within a single stack? It might be helpful to post how your routes are configured.
– Sean Wang
Mar 8 at 23:26
Yes they are. I posted my Navigator.js file
– irondsd
Mar 9 at 0:12
Check google.com/url?sa=t&source=web&rct=j&url=https://…
– Amas
Mar 9 at 3:11
A lot depends on what you are doing in each of your screens. Are they connected to redux?
– 10101010
Mar 9 at 6:36
No, they are not. Some of the screens are just empty yet, but navigation is still getting slow. Between home screen with 6 pretty simple components and empty screen. After 5 times going back and forth, it's noticeably slow. I checked the article, but they mention complex screens, which is not the case for me, all of my screens are simple. So the issue is different.
– irondsd
Mar 9 at 8:49