Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit fd2e53f

Browse files
committed
Init
0 parents  commit fd2e53f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+7392
-0
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["react-native"]
3+
}

.buckconfig

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
[android]
3+
target = Google Inc.:Google APIs:23
4+
5+
[maven_repositories]
6+
central = https://repo1.maven.org/maven2

.expo/packager-info.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"expoServerPort": null,
3+
"packagerPort": null,
4+
"packagerPid": null,
5+
"expoServerNgrokUrl": null,
6+
"packagerNgrokUrl": null,
7+
"ngrokPid": null
8+
}

.flowconfig

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[ignore]
2+
; We fork some components by platform
3+
.*/*[.]android.js
4+
5+
; Ignore "BUCK" generated dirs
6+
<PROJECT_ROOT>/\.buckd/
7+
8+
; Ignore unexpected extra "@providesModule"
9+
.*/node_modules/.*/node_modules/fbjs/.*
10+
11+
; Ignore duplicate module providers
12+
; For RN Apps installed via npm, "Libraries" folder is inside
13+
; "node_modules/react-native" but in the source repo it is in the root
14+
.*/Libraries/react-native/React.js
15+
.*/Libraries/react-native/ReactNative.js
16+
17+
[include]
18+
19+
[libs]
20+
node_modules/react-native/Libraries/react-native/react-native-interface.js
21+
node_modules/react-native/flow
22+
flow/
23+
24+
[options]
25+
emoji=true
26+
27+
module.system=haste
28+
29+
experimental.strict_type_args=true
30+
31+
munge_underscores=true
32+
33+
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
34+
35+
suppress_type=$FlowIssue
36+
suppress_type=$FlowFixMe
37+
suppress_type=$FixMe
38+
39+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
40+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
41+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
42+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
43+
44+
unsafe.enable_getters_and_setters=true
45+
46+
[version]
47+
^0.42.0

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pbxproj -text

.gitignore

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata
17+
*.xccheckout
18+
*.moved-aside
19+
DerivedData
20+
*.hmap
21+
*.ipa
22+
*.xcuserstate
23+
project.xcworkspace
24+
25+
# Android/IntelliJ
26+
#
27+
build/
28+
.idea
29+
.gradle
30+
local.properties
31+
*.iml
32+
33+
# node.js
34+
#
35+
node_modules/
36+
npm-debug.log
37+
yarn-error.log
38+
39+
# BUCK
40+
buck-out/
41+
\.buckd/
42+
*.keystore
43+
44+
# fastlane
45+
#
46+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47+
# screenshots whenever they are needed.
48+
# For more information about the recommended setup visit:
49+
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
50+
51+
fastlane/report.xml
52+
fastlane/Preview.html
53+
fastlane/screenshots

.watchmanconfig

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

App.js

+253
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
import React, { Component } from 'react';
2+
import {Text, Platform, Modal, View, TextInput} from 'react-native';
3+
import {
4+
Container,
5+
Header,
6+
Title,
7+
Content,
8+
Button,
9+
Left,
10+
Right,
11+
Body,
12+
Icon,
13+
Drawer,
14+
Card,
15+
CardItem,
16+
} from 'native-base';
17+
18+
import SideBar from './SideBar.js';
19+
import NoteModal from './NoteModal';
20+
21+
export default class App extends Component {
22+
constructor() {
23+
super();
24+
this.state = {
25+
isNoteOpen: false,
26+
};
27+
}
28+
29+
componentWillMount() {}
30+
31+
openDrawer = () => {
32+
this._drawer._root.open();
33+
};
34+
35+
setNoteModalIsOpen(isOpen) {
36+
this.setState({isNoteOpen: isOpen})
37+
}
38+
39+
render() {
40+
return (
41+
<Drawer
42+
ref={(ref) => {
43+
this._drawer = ref;
44+
}}
45+
content={<SideBar/>}
46+
panOpenMask={.75}>
47+
<Container>
48+
<Header style={Platform.OS === 'android' ? {height: 70} : null}>
49+
<Left style={Platform.OS === 'android' ? {top: 10} : null}>
50+
<Button transparent onPress={this.openDrawer.bind(this)}>
51+
<Icon name='menu'/>
52+
</Button>
53+
</Left>
54+
<Body style={Platform.OS === 'android' ? {top: 10} : null}>
55+
<Title>folder_name</Title>
56+
</Body>
57+
<Right style={Platform.OS === 'android' ? {top: 10} : null}>
58+
<Button transparent>
59+
<Icon name='search'/>
60+
</Button>
61+
</Right>
62+
</Header>
63+
<Content>
64+
<Card>
65+
<CardItem button onPress={() => this.setNoteModalIsOpen(true)}>
66+
<Body>
67+
<Text>aaaaaaaaaaa</Text>
68+
</Body>
69+
</CardItem>
70+
</Card>
71+
<Card>
72+
<CardItem>
73+
<Body>
74+
<Text>bbbbbbbbbbbbb</Text>
75+
</Body>
76+
</CardItem>
77+
</Card><Card>
78+
<CardItem>
79+
<Body>
80+
<Text>aaaaaaaaaaa</Text>
81+
</Body>
82+
</CardItem>
83+
</Card>
84+
<Card>
85+
<CardItem>
86+
<Body>
87+
<Text>bbbbbbbbbbbbb</Text>
88+
</Body>
89+
</CardItem>
90+
</Card><Card>
91+
<CardItem>
92+
<Body>
93+
<Text>aaaaaaaaaaa</Text>
94+
</Body>
95+
</CardItem>
96+
</Card>
97+
<Card>
98+
<CardItem>
99+
<Body>
100+
<Text>bbbbbbbbbbbbb</Text>
101+
</Body>
102+
</CardItem>
103+
</Card><Card>
104+
<CardItem>
105+
<Body>
106+
<Text>aaaaaaaaaaa</Text>
107+
</Body>
108+
</CardItem>
109+
</Card>
110+
<Card>
111+
<CardItem>
112+
<Body>
113+
<Text>bbbbbbbbbbbbb</Text>
114+
</Body>
115+
</CardItem>
116+
</Card><Card>
117+
<CardItem>
118+
<Body>
119+
<Text>aaaaaaaaaaa</Text>
120+
</Body>
121+
</CardItem>
122+
</Card>
123+
<Card>
124+
<CardItem>
125+
<Body>
126+
<Text>bbbbbbbbbbbbb</Text>
127+
</Body>
128+
</CardItem>
129+
</Card><Card>
130+
<CardItem>
131+
<Body>
132+
<Text>aaaaaaaaaaa</Text>
133+
</Body>
134+
</CardItem>
135+
</Card>
136+
<Card>
137+
<CardItem>
138+
<Body>
139+
<Text>bbbbbbbbbbbbb</Text>
140+
</Body>
141+
</CardItem>
142+
</Card><Card>
143+
<CardItem>
144+
<Body>
145+
<Text>aaaaaaaaaaa</Text>
146+
</Body>
147+
</CardItem>
148+
</Card>
149+
<Card>
150+
<CardItem>
151+
<Body>
152+
<Text>bbbbbbbbbbbbb</Text>
153+
</Body>
154+
</CardItem>
155+
</Card><Card>
156+
<CardItem>
157+
<Body>
158+
<Text>aaaaaaaaaaa</Text>
159+
</Body>
160+
</CardItem>
161+
</Card>
162+
<Card>
163+
<CardItem>
164+
<Body>
165+
<Text>bbbbbbbbbbbbb</Text>
166+
</Body>
167+
</CardItem>
168+
</Card><Card>
169+
<CardItem>
170+
<Body>
171+
<Text>aaaaaaaaaaa</Text>
172+
</Body>
173+
</CardItem>
174+
</Card>
175+
<Card>
176+
<CardItem>
177+
<Body>
178+
<Text>bbbbbbbbbbbbb</Text>
179+
</Body>
180+
</CardItem>
181+
</Card><Card>
182+
<CardItem>
183+
<Body>
184+
<Text>aaaaaaaaaaa</Text>
185+
</Body>
186+
</CardItem>
187+
</Card>
188+
<Card>
189+
<CardItem>
190+
<Body>
191+
<Text>bbbbbbbbbbbbb</Text>
192+
</Body>
193+
</CardItem>
194+
</Card><Card>
195+
<CardItem>
196+
<Body>
197+
<Text>aaaaaaaaaaa</Text>
198+
</Body>
199+
</CardItem>
200+
</Card>
201+
<Card>
202+
<CardItem>
203+
<Body>
204+
<Text>bbbbbbbbbbbbb</Text>
205+
</Body>
206+
</CardItem>
207+
</Card><Card>
208+
<CardItem>
209+
<Body>
210+
<Text>aaaaaaaaaaa</Text>
211+
</Body>
212+
</CardItem>
213+
</Card>
214+
<Card>
215+
<CardItem>
216+
<Body>
217+
<Text>bbbbbbbbbbbbb</Text>
218+
</Body>
219+
</CardItem>
220+
</Card><Card>
221+
<CardItem>
222+
<Body>
223+
<Text>aaaaaaaaaaa</Text>
224+
</Body>
225+
</CardItem>
226+
</Card>
227+
<Card>
228+
<CardItem>
229+
<Body>
230+
<Text>bbbbbbbbbbbbb</Text>
231+
</Body>
232+
</CardItem>
233+
</Card><Card>
234+
<CardItem>
235+
<Body>
236+
<Text>aaaaaaaaaaa</Text>
237+
</Body>
238+
</CardItem>
239+
</Card>
240+
<Card>
241+
<CardItem>
242+
<Body>
243+
<Text>bbbbbbbbbbbbb</Text>
244+
</Body>
245+
</CardItem>
246+
</Card>
247+
</Content>
248+
<NoteModal setIsOpen={this.setNoteModalIsOpen.bind(this)} isNoteOpen={this.state.isNoteOpen}/>
249+
</Container>
250+
</Drawer>
251+
);
252+
}
253+
}

0 commit comments

Comments
 (0)