Skip to content

Commit 5963ff9

Browse files
committed
Rename example app folder
1 parent 80f7612 commit 5963ff9

Some content is hidden

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

45 files changed

+364
-24
lines changed

Diff for: .editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
10+
# change these settings to your own preference
11+
indent_style = space
12+
indent_size = 2
13+
14+
# we recommend you to keep these unchanged
15+
end_of_line = lf
16+
charset = utf-8
17+
trim_trailing_whitespace = true
18+
insert_final_newline = true
19+
20+
[*.md]
21+
trim_trailing_whitespace = false

Diff for: .eslintrc

+326
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,326 @@
1+
{
2+
"parser": "babel-eslint",
3+
4+
"env": {
5+
"browser": true,
6+
"node": true,
7+
"es6": true
8+
},
9+
10+
"parserOptions": {
11+
"sourceType": "module",
12+
"ecmaFeatures": {
13+
"jsx": true
14+
}
15+
},
16+
17+
"plugins": [
18+
"ava",
19+
"babel",
20+
"import",
21+
"react",
22+
"react-native",
23+
],
24+
25+
"globals": {
26+
"ReactClass": false,
27+
"ReactPropsCheckType": false,
28+
"ReactPropsChainableTypeChecker": false,
29+
"ReactPropTypes": false,
30+
"SyntheticEvent": false,
31+
},
32+
33+
"rules": {
34+
"comma-dangle": [1,"always-multiline"],
35+
"max-depth": 0,
36+
"max-len": 0,
37+
"max-params": 0,
38+
"max-statements-per-line": 0,
39+
"max-statements": 0,
40+
"no-cond-assign": 2,
41+
"no-console": 1,
42+
"no-constant-condition": 2,
43+
"no-control-regex": 2,
44+
"no-debugger": 2,
45+
"no-dupe-args": 2,
46+
"no-dupe-keys": 2,
47+
"no-duplicate-case": 2,
48+
"no-duplicate-imports": 2,
49+
"no-empty-character-class": 2,
50+
"no-empty-pattern": 2,
51+
"no-empty": 2,
52+
"no-ex-assign": 2,
53+
"no-extra-boolean-cast": 2,
54+
"no-extra-label": 2,
55+
"no-extra-parens": 0,
56+
"no-extra-semi": 2,
57+
"no-func-assign": 2,
58+
"no-inner-declarations": 2,
59+
"no-invalid-regexp": 2,
60+
"no-irregular-whitespace": 2,
61+
"no-negated-in-lhs": 2,
62+
"no-obj-calls": 2,
63+
"no-regex-spaces": 2,
64+
"no-restricted-globals": 0,
65+
"no-sparse-arrays": 2,
66+
"no-unexpected-multiline": 2,
67+
"no-unreachable": 2,
68+
"template-curly-spacing": 1,
69+
"use-isnan": 2,
70+
"valid-jsdoc": 1,
71+
"valid-typeof": 2,
72+
73+
"accessor-pairs": 0,
74+
"block-scoped-var": 2,
75+
"complexity": 0,
76+
"consistent-return": 2,
77+
"curly": [2, "multi-line"],
78+
"default-case": 0,
79+
"dot-location": [1, "property"],
80+
"dot-notation": 2,
81+
"eqeqeq": 2,
82+
"guard-for-in": 0,
83+
"no-alert": 2,
84+
"no-caller": 2,
85+
"no-case-declarations": 1,
86+
"no-div-regex": 0,
87+
"no-else-return": 0,
88+
"no-eq-null": 2,
89+
"no-eval": 2,
90+
"no-extend-native": 2,
91+
"no-extra-bind": 2,
92+
"no-fallthrough": 1,
93+
"no-floating-decimal": 2,
94+
"no-implicit-coercion": 0,
95+
"no-implicit-globals": 0,
96+
"no-implied-eval": 2,
97+
"no-iterator": 2,
98+
"no-labels": 2,
99+
"no-lone-blocks": 2,
100+
"no-loop-func": 2,
101+
"no-multi-spaces": 1,
102+
"no-multi-str": 2,
103+
"no-native-reassign": 2,
104+
"no-negated-condition": 0,
105+
"no-new-func": 2,
106+
"no-new-wrappers": 2,
107+
"no-new": 2,
108+
"no-octal-escape": 2,
109+
"no-octal": 2,
110+
"no-param-reassign": 1,
111+
"no-process-env": 0,
112+
"no-proto": 2,
113+
"no-redeclare": 2,
114+
"no-return-assign": 2,
115+
"no-script-url": 2,
116+
"no-self-assign": 2,
117+
"no-self-compare": 2,
118+
"no-sequences": 2,
119+
"no-unmodified-loop-condition": 2,
120+
"no-unused-expressions": 2,
121+
"no-unused-labels": 2,
122+
"no-useless-call": 2,
123+
"no-useless-concat": 2,
124+
"no-useless-constructor": 2,
125+
"no-useless-escape": 2,
126+
"no-void": 2,
127+
"no-warning-comments": 0,
128+
"no-with": 2,
129+
"radix": 1,
130+
"vars-on-top": 1,
131+
"wrap-iife": 1,
132+
"yoda": [1, "never"],
133+
134+
"strict": 0,
135+
136+
"init-declarations": 0,
137+
"no-catch-shadow": 2,
138+
"no-delete-var": 2,
139+
"no-label-var": 2,
140+
"no-shadow-restricted-names": 2,
141+
"no-shadow": 2,
142+
"no-undef-init": 2,
143+
"no-undef": 2,
144+
"no-undefined": 2,
145+
"no-unused-vars": 2,
146+
"no-use-before-define": 0,
147+
"no-whitespace-before-property": 1,
148+
149+
"handle-callback-err": 1,
150+
"no-mixed-requires": 1,
151+
"no-new-require": 0,
152+
"no-path-concat": 0,
153+
"no-process-exit": 0,
154+
"no-restricted-imports": 0,
155+
"no-restricted-modules": 0,
156+
"no-restricted-syntax": 0,
157+
"no-sync": 0,
158+
159+
"array-bracket-spacing": 0,
160+
"array-callback-return": 2,
161+
"arrow-body-style": 0,
162+
"block-spacing": [1, "always"],
163+
"brace-style": [1, "1tbs", { "allowSingleLine": true }],
164+
"camelcase": 0,
165+
"comma-spacing": [1, { "before": false, "after": true }],
166+
"comma-style": [1, "last"],
167+
"computed-property-spacing": [1, "never"],
168+
"consistent-this": [1, "self"],
169+
"eol-last": 1,
170+
"func-names": 0,
171+
"func-style": 0,
172+
"id-length": 0,
173+
"id-match": 0,
174+
"indent": [1, 2],
175+
"jsx-quotes": [1, "prefer-single"],
176+
"key-spacing": [1, { "beforeColon": false, "afterColon": true }],
177+
"keyword-spacing": 1,
178+
"linebreak-style": 1,
179+
"lines-around-comment": 0,
180+
"max-nested-callbacks": [1, 3],
181+
"new-cap": 0,
182+
"new-parens": 2,
183+
"newline-after-var": 0,
184+
"newline-before-return": 0,
185+
"no-array-constructor": 1,
186+
"no-confusing-arrow": 0,
187+
"no-continue": 0,
188+
"no-inline-comments": 0,
189+
"no-lonely-if": 0,
190+
"no-mixed-spaces-and-tabs": [1, "smart-tabs"],
191+
"no-multiple-empty-lines": 1,
192+
"no-nested-ternary": 1,
193+
"no-new-object": 1,
194+
"no-new-symbol": 2,
195+
"no-spaced-func": 1,
196+
"no-ternary": 0,
197+
"no-trailing-spaces": 1,
198+
"no-underscore-dangle": 0,
199+
"no-unneeded-ternary": 1,
200+
"object-curly-spacing": 0,
201+
"one-var-declaration-per-line": 0,
202+
"one-var": 0,
203+
"operator-assignment": 1,
204+
"operator-linebreak": [2, "after"],
205+
"padded-blocks": 0,
206+
"quote-props": [1, "as-needed"],
207+
"quotes": [1, "single", "avoid-escape"],
208+
"semi-spacing": [2, { "before": false, "after": true }],
209+
"semi": 2,
210+
"sort-imports": 0,
211+
"sort-vars": 0,
212+
"space-before-blocks": 1,
213+
"space-in-parens": [1, "never"],
214+
"space-infix-ops": [1, { "int32Hint": false} ],
215+
"space-unary-ops": [1, { "words": true, "nonwords": false }],
216+
"spaced-comment": [1, "always"],
217+
"wrap-regex": 0,
218+
219+
"arrow-parens": 0,
220+
"arrow-spacing": [2, { "before": true, "after": true }],
221+
"constructor-super": 2,
222+
"generator-star-spacing": 0,
223+
"no-class-assign": 2,
224+
"no-const-assign": 2,
225+
"no-dupe-class-members": 2,
226+
"no-this-before-super": 2,
227+
"no-var": 1,
228+
"object-shorthand": 0,
229+
"prefer-arrow-callback": 1,
230+
"prefer-const": 1,
231+
"prefer-reflect": 0,
232+
"prefer-rest-params": 1,
233+
"prefer-spread": 1,
234+
"prefer-template": 0,
235+
"require-jsdoc": 0,
236+
"require-yield": 0,
237+
238+
"ava/assertion-message": [0, "always"],
239+
"ava/max-asserts": [0, 5],
240+
"ava/no-cb-test": 0,
241+
"ava/no-identical-title": 2,
242+
"ava/no-ignored-test-files": 2,
243+
"ava/no-invalid-end": 2,
244+
"ava/no-only-test": 2,
245+
"ava/no-skip-assert": 2,
246+
"ava/no-skip-test": 2,
247+
"ava/no-statement-after-end": 2,
248+
"ava/no-todo-test": 1,
249+
"ava/no-unknown-modifiers": 2,
250+
"ava/prefer-power-assert": 0,
251+
"ava/test-ended": 2,
252+
"ava/test-title": [2, "if-multiple"],
253+
"ava/use-t-well": 2,
254+
"ava/use-t": 2,
255+
"ava/use-test": 2,
256+
"ava/use-true-false": 2,
257+
258+
"babel/generator-star-spacing": [2, "before"],
259+
"babel/new-cap": 0,
260+
"babel/array-bracket-spacing": [1, "always"],
261+
"babel/object-curly-spacing": [1, "always"],
262+
"babel/object-shorthand": 1,
263+
"babel/arrow-parens": 0,
264+
"babel/no-await-in-loop": 2,
265+
"babel/flow-object-type": [1, "semicolon"],
266+
267+
"import/no-unresolved": 2,
268+
"import/named": 2,
269+
"import/default": 0,
270+
"import/namespace": 0,
271+
"import/export": 2,
272+
"import/no-named-as-default": 0,
273+
"import/no-named-as-default-member": 0,
274+
"import/no-deprecated": 0,
275+
"import/no-extraneous-dependencies": 0,
276+
"import/no-commonjs": 1,
277+
"import/no-amd": 1,
278+
"import/no-nodejs-modules": 0,
279+
"import/imports-first": 2,
280+
"import/no-duplicates": 2,
281+
"import/no-namespace": 0,
282+
"import/extensions": [2, { "js": "never", "json": "always" }],
283+
"import/order": 0,
284+
285+
"react/display-name": 0,
286+
"react/forbid-prop-types": 0,
287+
"react/no-danger": 1,
288+
"react/no-deprecated": 1,
289+
"react/no-did-mount-set-state": 2,
290+
"react/no-did-update-set-state": 2,
291+
"react/no-direct-mutation-state": 2,
292+
"react/no-is-mounted": 2,
293+
"react/no-multi-comp": 0,
294+
"react/no-set-state": 0,
295+
"react/no-string-refs": 2,
296+
"react/no-unknown-property": 1,
297+
"react/prefer-es6-class": 1,
298+
"react/prop-types": 1,
299+
"react/react-in-jsx-scope": 1,
300+
"react/require-render-return": 2,
301+
"react/self-closing-comp": 1,
302+
"react/sort-comp": 1,
303+
"react/sort-prop-types": 0,
304+
"react/jsx-boolean-value": [1, "never"],
305+
"react/jsx-closing-bracket-location": 1,
306+
"react/jsx-curly-spacing": [1, "never"],
307+
"react/jsx-equals-spacing": 1,
308+
"react/jsx-first-prop-new-line": [1, "multiline"],
309+
"react/jsx-handler-names": 0,
310+
"react/jsx-indent-props": [1, 2],
311+
"react/jsx-key": 2,
312+
"react/jsx-max-props-per-line": [1, { "maximum": 2 }],
313+
"react/jsx-no-bind": 1,
314+
"react/jsx-no-duplicate-props": 2,
315+
"react/jsx-no-literals": 0,
316+
"react/jsx-no-undef": 2,
317+
"react/jsx-pascal-case": 2,
318+
"react/jsx-sort-props": 0,
319+
"react/jsx-uses-react": 1,
320+
"react/jsx-uses-vars": 1,
321+
"react/jsx-wrap-multilines": 1,
322+
323+
"react-native/no-unused-styles": 1,
324+
"react-native/split-platform-components": 1,
325+
}
326+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: ReactNativePaperExample/index.android.js renamed to example/index.android.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
/**
2-
* Sample React Native App
3-
* https://github.com/facebook/react-native
4-
* @flow
5-
*/
1+
/* @flow */
62

73
import React, { Component } from 'react';
84
import {
95
AppRegistry,
106
StyleSheet,
117
Text,
12-
View
8+
View,
139
} from 'react-native';
1410

1511
export default class ReactNativePaperExample extends Component {

Diff for: ReactNativePaperExample/index.ios.js renamed to example/index.ios.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
/**
2-
* Sample React Native App
3-
* https://github.com/facebook/react-native
4-
* @flow
5-
*/
1+
/* @flow */
62

73
import React, { Component } from 'react';
84
import {
95
AppRegistry,
106
StyleSheet,
117
Text,
12-
View
8+
View,
139
} from 'react-native';
1410

1511
export default class ReactNativePaperExample extends Component {

0 commit comments

Comments
 (0)