From 18e33eba73b231c8bd6bcea37ea880b4720cbaf8 Mon Sep 17 00:00:00 2001 From: Aakash N S Date: Sun, 1 Nov 2015 23:57:21 +0530 Subject: [PATCH] Added a toolbar to the example app --- examples/ExampleApp/index.android.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/examples/ExampleApp/index.android.js b/examples/ExampleApp/index.android.js index 1d31f76..36755dc 100644 --- a/examples/ExampleApp/index.android.js +++ b/examples/ExampleApp/index.android.js @@ -7,6 +7,7 @@ var { NativeModules, TouchableNativeFeedback, ScrollView, + ToolbarAndroid, } = React; import DialogAndroid from 'react-native-dialogs'; @@ -14,9 +15,6 @@ import DialogAndroid from 'react-native-dialogs'; import dialogData from './dialogData.js'; import {MKButton } from 'react-native-material-kit'; - - - class ExampleApp extends React.Component { constructor(props) { super(props); @@ -54,11 +52,14 @@ class ExampleApp extends React.Component { }); return ( + + {dialogs} + ); } } @@ -82,7 +83,11 @@ var styles = StyleSheet.create({ textAlign: 'center', color: '#333333', marginBottom: 5, - } + }, + toolbar: { + backgroundColor: '#311B92', + height: 56, + }, }); AppRegistry.registerComponent('ExampleApp', () => ExampleApp);