Skip to content

Commit

Permalink
docs(components): update navigation components to react-navigation@4 api
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Yorsh committed Sep 25, 2019
1 parent dc5a38c commit ec25851
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -92,7 +92,7 @@ export type BottomNavigationElement = React.ReactElement<BottomNavigationProps>;
* ```
* import React from 'react';
* import { BottomNavigation, BottomNavigationTab } from 'react-native-ui-kitten';
* import { createBottomTabNavigator } from 'react-navigation';
* import { createBottomTabNavigator } from 'react-navigation-tabs';
* import { Dashboard, Settings } from './path-to/screen-components'; // <-- Import screen components
*
* export const BottomNavigationShowcase = (props) => {
Expand Down
3 changes: 2 additions & 1 deletion src/framework/ui/drawer/drawer.component.tsx
Expand Up @@ -62,7 +62,8 @@ export type DrawerElement = React.ReactElement<DrawerProps>;
*
* ```
* import React from 'react';
* import { createDrawerNavigator, SafeAreaView } from 'react-navigation';
* import { SafeAreaView } from 'react-navigation';
* import { createDrawerNavigator } from 'react-navigation-drawer';
* import { Dashboard, Messages, Settings } from './path-to/screen-components'; // <-- Import screen components
*
* class DrawerNavigation extends React.Component {
Expand Down

0 comments on commit ec25851

Please sign in to comment.