Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Add use example in README #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,38 @@ Latest documentation is available here: http://facebook.github.io/react-native/r

- Navigator.props.sceneStyle must be a plain object, not a stylesheet!

(this breaking change is needed to avoid calling React Native's private APIs)
(this breaking change is needed to avoid calling React Native's private APIs)

### How to use it

Example use of `Navigator`

```
import React, {Component} from 'react';
import { AppRegistry, StyleSheet, View } from 'react-native';

import CustomComponents from 'react-native-deprecated-custom-components';

export default class ExampleApp extends Component {

render() {
return (
<View style={styles.container}>

<CustomComponents.Navigator />

</View>
);
}

}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#eeeeee',
},
});

AppRegistry.registerComponent('ExampleApp', () => ExampleApp);
```