mirror of
https://github.com/status-im/react-native-dialogs.git
synced 2026-08-31 11:11:08 +00:00
Added a toolbar to the example app
This commit is contained in:
@@ -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 (
|
||||
<View style={{flex:1}}>
|
||||
<ToolbarAndroid title="React Native Dialogs" style={styles.toolbar} titleColor="#ddd"/>
|
||||
<ScrollView>
|
||||
<View style={styles.container}>
|
||||
{dialogs}
|
||||
</View>
|
||||
</ScrollView>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -82,7 +83,11 @@ var styles = StyleSheet.create({
|
||||
textAlign: 'center',
|
||||
color: '#333333',
|
||||
marginBottom: 5,
|
||||
}
|
||||
},
|
||||
toolbar: {
|
||||
backgroundColor: '#311B92',
|
||||
height: 56,
|
||||
},
|
||||
});
|
||||
|
||||
AppRegistry.registerComponent('ExampleApp', () => ExampleApp);
|
||||
|
||||
Reference in New Issue
Block a user