Browse Source

update npmignore

Daniel Zlotin 8 years ago
parent
commit
bf79a6d1a7
3 changed files with 12 additions and 7 deletions
  1. 2
    2
      .npmignore
  2. 9
    1
      example/src/screens/FirstTabScreen.js
  3. 1
    4
      example/src/screens/index.android.js

+ 2
- 2
.npmignore View File

1
-example/
2
-example-redux/
1
+example
2
+old-example-redux
3
 
3
 
4
 test/
4
 test/
5
 res/generated/
5
 res/generated/

+ 9
- 1
example/src/screens/FirstTabScreen.js View File

28
   static navigatorStyle = {
28
   static navigatorStyle = {
29
     drawUnderTabBar: true
29
     drawUnderTabBar: true
30
   };
30
   };
31
+
31
   constructor(props) {
32
   constructor(props) {
32
     super(props);
33
     super(props);
33
     // if you want to listen on navigator events, set this up
34
     // if you want to listen on navigator events, set this up
34
     this.props.navigator.setOnNavigatorEvent(this.onNavigatorEvent.bind(this));
35
     this.props.navigator.setOnNavigatorEvent(this.onNavigatorEvent.bind(this));
35
   }
36
   }
37
+
36
   onNavigatorEvent(event) {
38
   onNavigatorEvent(event) {
37
     if (event.id == 'menu') {
39
     if (event.id == 'menu') {
38
       this.props.navigator.toggleDrawer({
40
       this.props.navigator.toggleDrawer({
47
       AlertIOS.alert('NavBar', 'Add button pressed');
49
       AlertIOS.alert('NavBar', 'Add button pressed');
48
     }
50
     }
49
   }
51
   }
52
+
50
   render() {
53
   render() {
51
     return (
54
     return (
52
       <View style={{flex: 1, padding: 20}}>
55
       <View style={{flex: 1, padding: 20}}>
74
       </View>
77
       </View>
75
     );
78
     );
76
   }
79
   }
80
+
77
   onPushPress() {
81
   onPushPress() {
78
     this.props.navigator.push({
82
     this.props.navigator.push({
79
       title: "More",
83
       title: "More",
80
       screen: "example.PushedScreen"
84
       screen: "example.PushedScreen"
81
     });
85
     });
82
   }
86
   }
87
+
83
   onPushStyledPress() {
88
   onPushStyledPress() {
84
     this.props.navigator.push({
89
     this.props.navigator.push({
85
       title: "Styled",
90
       title: "Styled",
86
       screen: "example.StyledScreen"
91
       screen: "example.StyledScreen"
87
     });
92
     });
88
   }
93
   }
94
+
89
   onModalPress() {
95
   onModalPress() {
90
     this.props.navigator.showModal({
96
     this.props.navigator.showModal({
91
       title: "Modal",
97
       title: "Modal",
92
       screen: "example.ModalScreen"
98
       screen: "example.ModalScreen"
93
     });
99
     });
94
   }
100
   }
101
+
95
   onLightBoxPress() {
102
   onLightBoxPress() {
96
     this.props.navigator.showLightBox({
103
     this.props.navigator.showLightBox({
97
       screen: "example.LightBoxScreen",
104
       screen: "example.LightBoxScreen",
100
       }
107
       }
101
     });
108
     });
102
   }
109
   }
110
+
103
   onInAppNotificationPress() {
111
   onInAppNotificationPress() {
104
     this.props.navigator.showInAppNotification({
112
     this.props.navigator.showInAppNotification({
105
       screen: "example.NotificationScreen"
113
       screen: "example.NotificationScreen"
112
     textAlign: 'center',
120
     textAlign: 'center',
113
     fontSize: 18,
121
     fontSize: 18,
114
     marginBottom: 10,
122
     marginBottom: 10,
115
-    marginTop:10,
123
+    marginTop: 10,
116
     color: 'blue'
124
     color: 'blue'
117
   }
125
   }
118
 });
126
 });

+ 1
- 4
example/src/screens/index.android.js View File

1
-import { Navigation } from 'react-native-navigation';
1
+import {Navigation} from 'react-native-navigation';
2
 
2
 
3
 import FirstTabScreen from './FirstTabScreen';
3
 import FirstTabScreen from './FirstTabScreen';
4
 import SecondTabScreen from './SecondTabScreen';
4
 import SecondTabScreen from './SecondTabScreen';
5
 import ThirdTabScreen from './ThirdTabScreen';
5
 import ThirdTabScreen from './ThirdTabScreen';
6
 import PushedScreen from './PushedScreen';
6
 import PushedScreen from './PushedScreen';
7
 import StyledScreen from './StyledScreen';
7
 import StyledScreen from './StyledScreen';
8
-import ModalScreen from './ModalScreen';
9
-import LightBoxScreen from './LightBoxScreen';
10
-import NotificationScreen from './NotificationScreen'
11
 import SideMenu from './SideMenu';
8
 import SideMenu from './SideMenu';
12
 
9
 
13
 // register all screens of the app (including internal ones)
10
 // register all screens of the app (including internal ones)