Skip to content

Commit f3d3e89

Browse files
authored
Merge pull request #1 from Chhekur/master
initial commit
2 parents b3cfce8 + 9d328b4 commit f3d3e89

File tree

431 files changed

+122881
-1
lines changed

Some content is hidden

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

431 files changed

+122881
-1
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

.flowconfig

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
16+
; Ignore polyfills
17+
.*/Libraries/polyfills/.*
18+
19+
; Ignore metro
20+
.*/node_modules/metro/.*
21+
22+
[include]
23+
24+
[libs]
25+
node_modules/react-native/Libraries/react-native/react-native-interface.js
26+
node_modules/react-native/flow/
27+
28+
[options]
29+
emoji=true
30+
31+
esproposal.optional_chaining=enable
32+
esproposal.nullish_coalescing=enable
33+
34+
module.system=haste
35+
module.system.haste.use_name_reducers=true
36+
# get basename
37+
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
38+
# strip .js or .js.flow suffix
39+
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
40+
# strip .ios suffix
41+
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
42+
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
43+
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
44+
module.system.haste.paths.blacklist=.*/__tests__/.*
45+
module.system.haste.paths.blacklist=.*/__mocks__/.*
46+
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
47+
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
48+
49+
munge_underscores=true
50+
51+
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'
52+
53+
module.file_ext=.js
54+
module.file_ext=.jsx
55+
module.file_ext=.json
56+
module.file_ext=.native.js
57+
58+
suppress_type=$FlowIssue
59+
suppress_type=$FlowFixMe
60+
suppress_type=$FlowFixMeProps
61+
suppress_type=$FlowFixMeState
62+
63+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
64+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
65+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
66+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
67+
68+
[version]
69+
^0.92.0

.gitattributes

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

.gitignore

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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://docs.fastlane.tools/best-practices/source-control/
50+
51+
*/fastlane/report.xml
52+
*/fastlane/Preview.html
53+
*/fastlane/screenshots
54+
55+
# Bundle artifact
56+
*.jsbundle

.watchmanconfig

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

App.js

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/**
2+
* Sample React Native App
3+
* https://github.com/facebook/react-native
4+
*
5+
* @format
6+
* @flow
7+
*/
8+
9+
import React, {Component} from 'react';
10+
import {Platform, StyleSheet, Text, View} from 'react-native';
11+
import {front} from 'androidjs';
12+
13+
14+
const instructions = Platform.select({
15+
ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
16+
android:
17+
'Double tap R on your keyboard to reload,\n' +
18+
'Shake or press menu button for dev menu',
19+
});
20+
21+
type Props = {};
22+
export default class App extends Component<Props> {
23+
24+
25+
constructor(){
26+
super();
27+
this.state = {
28+
msg : "Hello From React"
29+
}
30+
front.send("hii");
31+
}
32+
33+
// updateText(){
34+
// this.setState({msg:"Hello From Node JS"});
35+
// }
36+
37+
componentWillMount(){
38+
front.on('hello', function(){
39+
this.setState({msg:"Hello From Node JS"});
40+
}.bind(this));
41+
}
42+
43+
render() {
44+
return (
45+
<View style={styles.container}>
46+
<Text style={styles.welcome} >{this.state.msg}</Text>
47+
<Text style={styles.instructions}>To get started, edit App.js</Text>
48+
<Text style={styles.instructions}>{instructions}</Text>
49+
</View>
50+
);
51+
}
52+
}
53+
54+
const styles = StyleSheet.create({
55+
container: {
56+
flex: 1,
57+
justifyContent: 'center',
58+
alignItems: 'center',
59+
backgroundColor: '#F5FCFF',
60+
},
61+
welcome: {
62+
fontSize: 20,
63+
textAlign: 'center',
64+
margin: 10,
65+
},
66+
instructions: {
67+
textAlign: 'center',
68+
color: '#333333',
69+
marginBottom: 5,
70+
},
71+
});

__tests__/App-test.js

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+
});
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ninja log v5
2+
0 795 0 CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o 64f9164c5b959436
3+
795 1151 0 ../../../../build/intermediates/cmake/debug/obj/arm64-v8a/libnative-lib.so b76e709f54ea3b3d
4+
1 853 0 CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o 64f9164c5b959436
5+
853 1195 0 ../../../../build/intermediates/cmake/debug/obj/arm64-v8a/libnative-lib.so b76e709f54ea3b3d
6+
0 810 0 CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o 64f9164c5b959436
7+
810 1154 0 ../../../../build/intermediates/cmake/debug/obj/arm64-v8a/libnative-lib.so b76e709f54ea3b3d
8+
1 363 0 ../../../../build/intermediates/cmake/debug/obj/arm64-v8a/libnative-lib.so b76e709f54ea3b3d
9+
1 281 0 ../../../../build/intermediates/cmake/debug/obj/arm64-v8a/libnative-lib.so b76e709f54ea3b3d
10+
15 640 0 ../../../../build/intermediates/cmake/debug/obj/arm64-v8a/libnative-lib.so b76e709f54ea3b3d
11+
1 355 0 ../../../../build/intermediates/cmake/debug/obj/arm64-v8a/libnative-lib.so b76e709f54ea3b3d
12+
0 363 0 ../../../../build/intermediates/cmake/debug/obj/arm64-v8a/libnative-lib.so b76e709f54ea3b3d
13+
1 364 0 ../../../../build/intermediates/cmake/debug/obj/arm64-v8a/libnative-lib.so b76e709f54ea3b3d
14+
0 436 0 ../../../../build/intermediates/cmake/debug/obj/arm64-v8a/libnative-lib.so b76e709f54ea3b3d

0 commit comments

Comments
 (0)