Skip to content

Commit

Permalink
Add info for using it with React Navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Jan 17, 2020
1 parent 59122c1 commit 95b60ac
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Expand Up @@ -40,6 +40,30 @@ class App extends Component {
}
```

To use this component with React Navigation, you'd want to disable the built-in header. There are 2 ways to disable the header in React Navigation:

Disable the default header for one screen:

```js
static navigationOptions = {
headerShown: false
};
```

Disable header globally in `createStackNavigator`:

```js
const Home = createStackNavigator(
{
ExampleScreen1,
ExampleScreen1,
},
{
headerMode: 'none',
}
);
```

## Props

For default Apple-style settings, you only need to provide:
Expand Down

0 comments on commit 95b60ac

Please sign in to comment.