-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.ios.js
executable file
·61 lines (47 loc) · 1.07 KB
/
index.ios.js
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
52
53
54
55
56
57
58
59
60
61
//to do
//animation - panel slides up
//clear inventory and cart on checkout
//pay option that does it
//pan gesture to delete
//if the row text is too long it has to wrap
//if inventory quantity is 0 or they ordered too much, say out of stock?
//when you make quantity changes and go back to parent, it doesn't save
'use strict';
var React = require('react');
var MyList = require('./listview');
var {
StyleSheet,
Image,
View,
TouchableHighlight,
ListView,
Text,
Component,
NavigatorIOS,
AsyncStorage
} = React;
var styles = React.StyleSheet.create({
text: {
color: 'black',
backgroundColor: 'white',
fontSize: 30,
margin: 80
},
container: {
flex: 1
}
});
class AwesomeProject extends React.Component {
render() {
return (
<React.NavigatorIOS
style={styles.container}
navigationBarHidden={true}
initialRoute={{
title: 'All Products',
component: MyList,
}}/>
);
}
}
React.AppRegistry.registerComponent('AwesomeProject', function() { return AwesomeProject });