-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsampleNavButtonPush.js
More file actions
51 lines (44 loc) · 905 Bytes
/
sampleNavButtonPush.js
File metadata and controls
51 lines (44 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
NavigatorIOS,
Text,
StyleSheet,
View,
} = React;
var SampleView = React.createClass({
render: function() {
return (
<View style={styles.container}>
<Text>Jerod's back!</Text>
<Text>No more half-days for the Chris's!</Text>
</View>
);
},
});
var SampleNavButtonPush = React.createClass({
render: function() {
return (
<NavigatorIOS
initialRoute={{
component: SampleView,
title: 'NavBar w/ Animation!',
leftButtonTitle: 'Ex1',
rightButtonTitle: 'Ex2',
onRightButtonPress: () => {
this.props.navigator.pop();
},
}}
/>
);
},
});
var styles = StyleSheet.create({
container: {
flex: 1,
marginTop: 100,
}
})
module.exports = SampleNavButtonPush;