Skip to content

Commit 733b14d

Browse files
committed
Initial setup
0 parents  commit 733b14d

File tree

16 files changed

+7326
-0
lines changed

16 files changed

+7326
-0
lines changed

.babelrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": ["babel-preset-expo"],
3+
"env": {
4+
"development": {
5+
"plugins": ["transform-react-jsx-source"]
6+
}
7+
}
8+
}

.eslintrc

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"extends": ["plugin:react/recommended"],
3+
"env": {
4+
"browser": true,
5+
"commonjs": true,
6+
"es6": true,
7+
"node": true,
8+
"jest": true
9+
},
10+
"parser": "babel-eslint",
11+
"parserOptions": {
12+
"ecmaFeatures": {
13+
"modules": true
14+
},
15+
"ecmaVersion": 7,
16+
"sourceType": "module"
17+
},
18+
"rules": {
19+
"react/prop-types": ["off"],
20+
"react/jsx-no-bind": [
21+
"error",
22+
{
23+
"ignoreRefs": false,
24+
"allowArrowFunctions": true,
25+
"allowBind": false
26+
}
27+
],
28+
"array-bracket-spacing": "error",
29+
"arrow-spacing": "error",
30+
"comma-dangle": "error",
31+
"computed-property-spacing": "error",
32+
"dot-location": ["error", "property"],
33+
"dot-notation": "error",
34+
"func-call-spacing": "error",
35+
"generator-star-spacing": "error",
36+
"indent": [
37+
"error",
38+
4,
39+
{
40+
"SwitchCase": 1
41+
}
42+
],
43+
"keyword-spacing": "error",
44+
"linebreak-style": ["error", "unix"],
45+
"no-class-assign": "error",
46+
"no-confusing-arrow": "error",
47+
"no-const-assign": "error",
48+
"no-constant-condition": "error",
49+
"no-dupe-class-members": "error",
50+
"no-extra-parens": "error",
51+
"no-extra-semi": "error",
52+
"no-implicit-coercion": "error",
53+
"no-mixed-spaces-and-tabs": "error",
54+
"no-multi-spaces": "error",
55+
"no-octal": "error",
56+
"no-redeclare": "error",
57+
"no-spaced-func": "error",
58+
"no-undef": "error",
59+
"no-unneeded-ternary": "error",
60+
"no-unused-vars": [
61+
"error",
62+
{
63+
"args": "none"
64+
}
65+
],
66+
"no-trailing-spaces": "error",
67+
"no-unreachable": "error",
68+
"no-var": "error",
69+
"no-this-before-super": "error",
70+
"constructor-super": "error",
71+
"valid-typeof": "error",
72+
"no-whitespace-before-property": "error",
73+
"object-shorthand": "error",
74+
"prefer-arrow-callback": "error",
75+
"prefer-const": "error",
76+
"prefer-template": "error",
77+
"quote-props": ["error", "as-needed"],
78+
"quotes": [
79+
"error",
80+
"double",
81+
{
82+
"avoidEscape": true,
83+
"allowTemplateLiterals": true
84+
}
85+
],
86+
"require-yield": "error",
87+
"semi": ["error", "always"],
88+
"space-before-blocks": "error",
89+
"space-before-function-paren": [
90+
"error",
91+
{
92+
"anonymous": "never",
93+
"named": "never",
94+
"asyncArrow": "always"
95+
}
96+
],
97+
"brace-style": ["error", "1tbs"],
98+
"max-len": ["error", 100, 4],
99+
"space-in-parens": "error",
100+
"space-infix-ops": "error",
101+
"space-unary-ops": "error",
102+
"switch-colon-spacing": "error",
103+
"template-curly-spacing": "error",
104+
"template-tag-spacing": "error"
105+
}
106+
}

.flowconfig

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
[ignore]
2+
; We fork some components by platform
3+
.*/*[.]android.js
4+
5+
; Ignore templates for 'react-native init'
6+
<PROJECT_ROOT>/node_modules/react-native/local-cli/templates/.*
7+
8+
; Ignore RN jest
9+
<PROJECT_ROOT>/node_modules/react-native/jest/.*
10+
11+
; Ignore RNTester
12+
<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
13+
14+
; Ignore the website subdir
15+
<PROJECT_ROOT>/node_modules/react-native/website/.*
16+
17+
; Ignore the Dangerfile
18+
<PROJECT_ROOT>/node_modules/react-native/danger/dangerfile.js
19+
20+
; Ignore Fbemitter
21+
<PROJECT_ROOT>/node_modules/fbemitter/.*
22+
23+
; Ignore "BUCK" generated dirs
24+
<PROJECT_ROOT>/node_modules/react-native/\.buckd/
25+
26+
; Ignore unexpected extra "@providesModule"
27+
.*/node_modules/.*/node_modules/fbjs/.*
28+
29+
; Ignore polyfills
30+
<PROJECT_ROOT>/node_modules/react-native/Libraries/polyfills/.*
31+
32+
; Ignore various node_modules
33+
<PROJECT_ROOT>/node_modules/react-native-gesture-handler/.*
34+
<PROJECT_ROOT>/node_modules/expo/.*
35+
<PROJECT_ROOT>/node_modules/react-navigation/.*
36+
<PROJECT_ROOT>/node_modules/xdl/.*
37+
<PROJECT_ROOT>/node_modules/reqwest/.*
38+
<PROJECT_ROOT>/node_modules/metro-bundler/.*
39+
40+
[include]
41+
42+
[libs]
43+
node_modules/react-native/Libraries/react-native/react-native-interface.js
44+
node_modules/react-native/flow/
45+
node_modules/expo/flow/
46+
47+
[options]
48+
emoji=true
49+
50+
module.system=haste
51+
52+
module.file_ext=.js
53+
module.file_ext=.jsx
54+
module.file_ext=.json
55+
module.file_ext=.ios.js
56+
57+
munge_underscores=true
58+
59+
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'
60+
61+
suppress_type=$FlowIssue
62+
suppress_type=$FlowFixMe
63+
suppress_type=$FlowFixMeProps
64+
suppress_type=$FlowFixMeState
65+
suppress_type=$FixMe
66+
67+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
68+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
69+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
70+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
71+
72+
unsafe.enable_getters_and_setters=true
73+
74+
[version]
75+
^0.56.0

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# expo
4+
.expo/
5+
6+
# dependencies
7+
/node_modules
8+
9+
# misc
10+
.env.local
11+
.env.development.local
12+
.env.test.local
13+
.env.production.local
14+
15+
npm-debug.log*
16+
yarn-debug.log*
17+
yarn-error.log*

.nvmrc

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

.watchmanconfig

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

App.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React, { Component } from "react";
2+
import { AppRegistry, View, Text } from "react-native";
3+
import { Header } from "./src/components/common";
4+
5+
export default class App extends Component {
6+
render() {
7+
return (
8+
<View>
9+
<Header headerText="Authentication" />
10+
<Text>An app</Text>
11+
</View>
12+
);
13+
}
14+
}
15+
16+
AppRegistry.registerComponent("auth", () => App);

0 commit comments

Comments
 (0)