Skip to content

Commit 2489f4a

Browse files
committed
first commit
0 parents  commit 2489f4a

File tree

196 files changed

+44791
-0
lines changed

Some content is hidden

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

196 files changed

+44791
-0
lines changed

.buckconfig

Lines changed: 6 additions & 0 deletions
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

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
API_URL=http://baobab.kaiyanapp.com/api/
2+
APP_NAME=Eyepetizer
3+
VERSIONCODE=1
4+
VERSIONNAME=1.0.0

.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native-community',
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
6+
};

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pbxproj -text

.gitignore

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
24+
# Android/IntelliJ
25+
#
26+
build/
27+
.idea
28+
.gradle
29+
local.properties
30+
*.iml
31+
32+
# Visual Studio Code
33+
#
34+
.vscode/
35+
36+
# node.js
37+
#
38+
node_modules/
39+
npm-debug.log
40+
yarn-error.log
41+
42+
# BUCK
43+
buck-out/
44+
\.buckd/
45+
*.keystore
46+
!debug.keystore
47+
48+
# fastlane
49+
#
50+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
51+
# screenshots whenever they are needed.
52+
# For more information about the recommended setup visit:
53+
# https://docs.fastlane.tools/best-practices/source-control/
54+
55+
*/fastlane/report.xml
56+
*/fastlane/Preview.html
57+
*/fastlane/screenshots
58+
59+
# Bundle artifact
60+
*.jsbundle
61+
62+
# CocoaPods
63+
/ios/Pods/

.prettierrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
bracketSpacing: false,
3+
jsxBracketSameLine: true,
4+
singleQuote: true,
5+
trailingComma: 'all',
6+
};

.watchmanconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

App.tsx

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
/**
2+
* Sample React Native App
3+
* https://github.com/facebook/react-native
4+
*
5+
* Generated with the TypeScript template
6+
* https://github.com/react-native-community/react-native-template-typescript
7+
*
8+
* @format
9+
*/
10+
11+
import React from 'react';
12+
import {
13+
SafeAreaView,
14+
StyleSheet,
15+
ScrollView,
16+
View,
17+
Text,
18+
StatusBar,
19+
} from 'react-native';
20+
21+
import {
22+
Header,
23+
LearnMoreLinks,
24+
Colors,
25+
DebugInstructions,
26+
ReloadInstructions,
27+
} from 'react-native/Libraries/NewAppScreen';
28+
29+
declare const global: {HermesInternal: null | {}};
30+
31+
const App = () => {
32+
return (
33+
<>
34+
<StatusBar barStyle="dark-content" />
35+
<SafeAreaView>
36+
<ScrollView
37+
contentInsetAdjustmentBehavior="automatic"
38+
style={styles.scrollView}>
39+
<Header />
40+
{global.HermesInternal == null ? null : (
41+
<View style={styles.engine}>
42+
<Text style={styles.footer}>Engine: Hermes</Text>
43+
</View>
44+
)}
45+
<View style={styles.body}>
46+
<View style={styles.sectionContainer}>
47+
<Text style={styles.sectionTitle}>Step One</Text>
48+
<Text style={styles.sectionDescription}>
49+
Edit <Text style={styles.highlight}>App.tsx</Text> to change this
50+
screen and then come back to see your edits.
51+
</Text>
52+
</View>
53+
<View style={styles.sectionContainer}>
54+
<Text style={styles.sectionTitle}>See Your Changes</Text>
55+
<Text style={styles.sectionDescription}>
56+
<ReloadInstructions />
57+
</Text>
58+
</View>
59+
<View style={styles.sectionContainer}>
60+
<Text style={styles.sectionTitle}>Debug</Text>
61+
<Text style={styles.sectionDescription}>
62+
<DebugInstructions />
63+
</Text>
64+
</View>
65+
<View style={styles.sectionContainer}>
66+
<Text style={styles.sectionTitle}>Learn More</Text>
67+
<Text style={styles.sectionDescription}>
68+
Read the docs to discover what to do next:
69+
</Text>
70+
</View>
71+
<LearnMoreLinks />
72+
</View>
73+
</ScrollView>
74+
</SafeAreaView>
75+
</>
76+
);
77+
};
78+
79+
const styles = StyleSheet.create({
80+
scrollView: {
81+
backgroundColor: Colors.lighter,
82+
},
83+
engine: {
84+
position: 'absolute',
85+
right: 0,
86+
},
87+
body: {
88+
backgroundColor: Colors.white,
89+
},
90+
sectionContainer: {
91+
marginTop: 32,
92+
paddingHorizontal: 24,
93+
},
94+
sectionTitle: {
95+
fontSize: 24,
96+
fontWeight: '600',
97+
color: Colors.black,
98+
},
99+
sectionDescription: {
100+
marginTop: 8,
101+
fontSize: 18,
102+
fontWeight: '400',
103+
color: Colors.dark,
104+
},
105+
highlight: {
106+
fontWeight: '700',
107+
},
108+
footer: {
109+
color: Colors.dark,
110+
fontSize: 12,
111+
fontWeight: '600',
112+
padding: 4,
113+
paddingRight: 12,
114+
textAlign: 'right',
115+
},
116+
});
117+
118+
export default App;

__tests__/App-test.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @format
3+
*/
4+
5+
import 'react-native';
6+
import React from 'react';
7+
import App from '../App';
8+
9+
// Note: test renderer must be required after react-native.
10+
import renderer from 'react-test-renderer';
11+
12+
it('renders correctly', () => {
13+
renderer.create(<App />);
14+
});

android/app/_BUCK

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# To learn about Buck see [Docs](https://buckbuild.com/).
2+
# To run your application with Buck:
3+
# - install Buck
4+
# - `npm start` - to start the packager
5+
# - `cd android`
6+
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7+
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8+
# - `buck install -r android/app` - compile, install and run application
9+
#
10+
11+
load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12+
13+
lib_deps = []
14+
15+
create_aar_targets(glob(["libs/*.aar"]))
16+
17+
create_jar_targets(glob(["libs/*.jar"]))
18+
19+
android_library(
20+
name = "all-libs",
21+
exported_deps = lib_deps,
22+
)
23+
24+
android_library(
25+
name = "app-code",
26+
srcs = glob([
27+
"src/main/java/**/*.java",
28+
]),
29+
deps = [
30+
":all-libs",
31+
":build_config",
32+
":res",
33+
],
34+
)
35+
36+
android_build_config(
37+
name = "build_config",
38+
package = "com.reactnative_eyepetizer",
39+
)
40+
41+
android_resource(
42+
name = "res",
43+
package = "com.reactnative_eyepetizer",
44+
res = "src/main/res",
45+
)
46+
47+
android_binary(
48+
name = "app",
49+
keystore = "//android/keystores:debug",
50+
manifest = "src/main/AndroidManifest.xml",
51+
package_type = "debug",
52+
deps = [
53+
":app-code",
54+
],
55+
)

0 commit comments

Comments
 (0)