From 33e15c069ac32dabb7680c5383995e2ab80eba17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20C=C3=A1novas?= Date: Mon, 1 May 2017 18:59:24 +0200 Subject: [PATCH] Added example use in README --- README.md | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6730681..ca58826 100644 --- a/README.md +++ b/README.md @@ -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) \ No newline at end of file +(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 ( + + + + + + ); + } + +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + backgroundColor: '#eeeeee', + }, +}); + +AppRegistry.registerComponent('ExampleApp', () => ExampleApp); +```