Configure UI Kitten with react native navigation
See original GitHub issueHow to configure UI Kitten if app is initialized with react-navigation
?
import {createStackNavigator, createAppContainer} from 'react-navigation';
import Login from "./components/Login";
import Issues from "./components/Issues";
import Issue from "./components/Issue";
import Create from "./components/Create";
import Time from "./components/Time";
const MainNavigator = createStackNavigator({
Home: {screen: Issues},
Login: {screen: Login},
Issues: {screen: Issues},
Issue: {screen: Issue},
Create: {screen: Create},
Time: {screen: Time},
}, {
transitionConfig: () => ({
transitionSpec: {
duration: 0, // Set the animation duration time as 0 !!
},
}),
});
const App = createAppContainer(MainNavigator);
export default App;
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Configure Navigation - UI Kitten - GitHub Pages
Configure Navigation. This guide will help you to configure the app to navigate between screens. UI Kitten has built-in components to fit React...
Read more >Using React Navigation 5 with UI Kitten
In this example, we're using a createStackNavigator function to create simple stack navigation between Sign In, Sign Up and Reset Password ...
Read more >How to Create React Native (UI Kitten) Drawer and Bottom ...
Type expo init ui-kitten-nav in your terminal and press enter. · Press enter to accept blank (a minimal app as clean as an...
Read more >How can Top Navigation component from UI Kitten can be ...
import React from 'react'; import {createStackNavigator} from '@react-navigation/stack'; import routes from '.
Read more >Top 5 react-native-ui-kitten Code Examples - Snyk
root} contentContainerStyle={styles.rootContainer}> {items} </ScrollView> ) } } let styles = RkStyleSheet.create( ...
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 Free
Top 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
Anyway, here is how I got it to work:
Screen oriententation is just a private need. You can ignore that.
The code snippet I posted is just to demonstrate how nothing much has changed. By the rules of react, whatever React Navigation’s createAppContainer function returns will be a component that you can use within your component tree.