Skip to content

Commit 5cae376

Browse files
author
June Domingo
committed
Merge branch 'release/1.0.0'
2 parents 936ae32 + ac2883e commit 5cae376

File tree

94 files changed

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

94 files changed

+4624
-0
lines changed

.babelrc

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

.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

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = tab
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
src/modules/_global/scrollableTabView

.eslintrc

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:import/errors",
5+
"plugin:import/warnings",
6+
"airbnb"
7+
],
8+
"plugins": [
9+
"react",
10+
"react-native"
11+
],
12+
"parserOptions": {
13+
"ecmaVersion": 6,
14+
"sourceType": "module",
15+
"ecmaFeatures": {
16+
"jsx": true
17+
}
18+
},
19+
"env": {
20+
"browser": true,
21+
"es6": true,
22+
"jquery": true,
23+
"mocha": true,
24+
"node": true
25+
},
26+
"rules": {
27+
"arrow-body-style": [1, "as-needed"],
28+
"arrow-parens": [1, "as-needed"],
29+
"class-methods-use-this": 0,
30+
"comma-dangle": [1, "never"],
31+
"consistent-return": 0,
32+
"eol-last": 0,
33+
"func-names": 0,
34+
"import/extensions": 0,
35+
"import/imports-first": 0,
36+
"import/no-extraneous-dependencies": 0,
37+
"import/no-unresolved": 0,
38+
"indent": [1, "tab", { "SwitchCase": 1, "VariableDeclarator": 1 }],
39+
"jsx-a11y/href-no-hash": 0,
40+
"jsx-quotes": 1,
41+
"linebreak-style": 0,
42+
"max-len": 0,
43+
"new-cap": 0,
44+
"no-alert": 0,
45+
"no-console": 1,
46+
"no-debugger": 1,
47+
"no-global-assign": 0,
48+
"no-lone-blocks": 0,
49+
"no-multi-spaces": 1,
50+
"no-shadow": 0,
51+
"no-tabs": 0,
52+
"no-trailing-spaces": 1,
53+
"no-underscore-dangle": 0,
54+
"no-unsafe-negation": 0,
55+
"no-unused-vars": [1, { "varsIgnorePattern": "(bindActionCreators|colors|chalk|dotenv|PropTypes)", "args": "none" }],
56+
"no-use-before-define": 0,
57+
"no-useless-constructor": 0,
58+
"no-var": 1,
59+
"object-curly-spacing": 1,
60+
"one-var": 0,
61+
"quotes": 0,
62+
"react-native/no-color-literals": 0,
63+
"react-native/no-inline-styles": 0,
64+
"react-native/no-unused-styles": 2,
65+
"react-native/split-platform-components": 2,
66+
"react/display-name": [ 1, { "ignoreTranspilerName": false }],
67+
"react/forbid-prop-types": [1, { "forbid": ["any"] }],
68+
"react/jsx-boolean-value": 1,
69+
"react/jsx-closing-bracket-location": [1, { "selfClosing": "tag-aligned", "nonEmpty": "after-props" }],
70+
"react/jsx-curly-spacing": 1,
71+
"react/jsx-filename-extension": 0,
72+
"react/jsx-indent": [1, "tab"],
73+
"react/jsx-indent-props": 0,
74+
"react/jsx-key": 1,
75+
"react/jsx-max-props-per-line": [1, { "maximum": 5 }],
76+
"react/jsx-no-bind": 0,
77+
"react/jsx-no-duplicate-props": 1,
78+
"react/jsx-no-literals": 0,
79+
"react/jsx-no-undef": 1,
80+
"react/jsx-pascal-case": 1,
81+
"react/jsx-sort-prop-types": 0,
82+
"react/jsx-sort-props": 0,
83+
"react/jsx-space-before-closing": [1, "always"],
84+
"react/jsx-uses-react": 1,
85+
"react/jsx-uses-vars": 1,
86+
"react/jsx-wrap-multilines": 1,
87+
"react/no-danger": 1,
88+
"react/no-did-mount-set-state": 1,
89+
"react/no-did-update-set-state": 1,
90+
"react/no-direct-mutation-state": 1,
91+
"react/no-multi-comp": 1,
92+
"react/no-set-state": 0,
93+
"react/no-unknown-property": 1,
94+
"react/prefer-es6-class": 1,
95+
"react/prefer-stateless-function": 0,
96+
"react/prop-types": 1,
97+
"react/react-in-jsx-scope": 1,
98+
"react/require-extension": 0,
99+
"react/self-closing-comp": 1,
100+
"react/sort-comp": 1,
101+
"semi": [1, "always"]
102+
},
103+
"settings": {
104+
"react": {
105+
"pragma": "React",
106+
"version": "15.3.2"
107+
}
108+
}
109+
}

.flowconfig

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[ignore]
2+
3+
# We fork some components by platform.
4+
.*/*[.]android.js
5+
6+
# Ignore templates with `@flow` in header
7+
.*/local-cli/generator.*
8+
9+
# Ignore malformed json
10+
.*/node_modules/y18n/test/.*\.json
11+
12+
# Ignore the website subdir
13+
<PROJECT_ROOT>/website/.*
14+
15+
# Ignore BUCK generated dirs
16+
<PROJECT_ROOT>/\.buckd/
17+
18+
# Ignore unexpected extra @providesModule
19+
.*/node_modules/commoner/test/source/widget/share.js
20+
21+
# Ignore duplicate module providers
22+
# For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root
23+
.*/Libraries/react-native/React.js
24+
.*/Libraries/react-native/ReactNative.js
25+
.*/node_modules/jest-runtime/build/__tests__/.*
26+
27+
[include]
28+
29+
[libs]
30+
node_modules/react-native/Libraries/react-native/react-native-interface.js
31+
node_modules/react-native/flow
32+
flow/
33+
34+
[options]
35+
module.system=haste
36+
37+
esproposal.class_static_fields=enable
38+
esproposal.class_instance_fields=enable
39+
40+
experimental.strict_type_args=true
41+
42+
munge_underscores=true
43+
44+
module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
45+
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'
46+
47+
suppress_type=$FlowIssue
48+
suppress_type=$FlowFixMe
49+
suppress_type=$FixMe
50+
51+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(30\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
52+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(30\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
53+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
54+
55+
unsafe.enable_getters_and_setters=true
56+
57+
[version]
58+
^0.30.0

.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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/IJ
26+
#
27+
*.iml
28+
.idea
29+
.gradle
30+
local.properties
31+
32+
# node.js
33+
#
34+
node_modules/
35+
npm-debug.log
36+
37+
# BUCK
38+
buck-out/
39+
\.buckd/
40+
android/app/libs
41+
android/keystores/debug.keystore
42+
43+
# Dev
44+
.env
45+
android/app/my-release-key.keystore

.watchmanconfig

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

__tests__/index.android.js

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

__tests__/index.ios.js

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

0 commit comments

Comments
 (0)