Skip to content

Commit 0cdb191

Browse files
committed
first commit
0 parents  commit 0cdb191

File tree

74 files changed

+67329
-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.

74 files changed

+67329
-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

.env

Whitespace-only changes.

.env.production

Whitespace-only changes.

.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-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
40+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-5]\\|[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.45.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
+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
10+
/* global __fbBatchedBridge, self, importScripts, postMessage, onmessage: true */
11+
/* eslint no-unused-vars: 0 */
12+
13+
'use strict';
14+
15+
onmessage = (function() {
16+
var visibilityState;
17+
var showVisibilityWarning = (function() {
18+
var hasWarned = false;
19+
return function() {
20+
// Wait until `YellowBox` gets initialized before displaying the warning.
21+
if (hasWarned || console.warn.toString().includes('[native code]')) {
22+
return;
23+
}
24+
hasWarned = true;
25+
console.warn(
26+
'Remote debugger is in a background tab which may cause apps to ' +
27+
'perform slowly. Fix this by foregrounding the tab (or opening it in ' +
28+
'a separate window).'
29+
);
30+
};
31+
})();
32+
33+
var messageHandlers = {
34+
'executeApplicationScript': function(message, sendReply) {
35+
for (var key in message.inject) {
36+
self[key] = JSON.parse(message.inject[key]);
37+
}
38+
var error;
39+
try {
40+
importScripts(message.url);
41+
} catch (err) {
42+
error = JSON.stringify(err);
43+
}
44+
sendReply(null /* result */, error);
45+
},
46+
'setDebuggerVisibility': function(message) {
47+
visibilityState = message.visibilityState;
48+
},
49+
};
50+
51+
return function(message) {
52+
if (visibilityState === 'hidden') {
53+
showVisibilityWarning();
54+
}
55+
56+
var object = message.data;
57+
58+
var sendReply = function(result, error) {
59+
postMessage({replyID: object.id, result: result, error: error});
60+
};
61+
62+
var handler = messageHandlers[object.method];
63+
if (handler) {
64+
// Special cased handlers
65+
handler(object, sendReply);
66+
} else {
67+
// Other methods get called on the bridge
68+
var returnValue = [[], [], [], 0];
69+
try {
70+
if (typeof __fbBatchedBridge === 'object') {
71+
returnValue = __fbBatchedBridge[object.method].apply(null, object.arguments);
72+
}
73+
} finally {
74+
sendReply(JSON.stringify(returnValue));
75+
}
76+
}
77+
};
78+
})();

0 commit comments

Comments
 (0)