Skip to content

Commit 55fcb19

Browse files
author
Kashish Grover
committed
Add dependencies and README
1 parent eeb634f commit 55fcb19

File tree

6 files changed

+839
-38
lines changed

6 files changed

+839
-38
lines changed

.eslintrc

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": [
4+
"airbnb"
5+
],
6+
"env": {
7+
"browser": true,
8+
"node": true
9+
},
10+
"settings": {
11+
"import/resolver": {
12+
"node": {
13+
"extensions": [".js", ".ios.js", ".android.js"]
14+
}
15+
}
16+
},
17+
"globals": {
18+
"__DEV__": false,
19+
"GLOBAL": false
20+
},
21+
"rules": {
22+
"arrow-parens": ["error", "always"],
23+
"function-paren-newline": ["error", "consistent"],
24+
"no-confusing-arrow": ["off"],
25+
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0, "maxBOF": 0 }],
26+
"no-underscore-dangle": ["off"],
27+
"object-curly-newline": ["error", { "consistent": true }],
28+
"prefer-promise-reject-errors": ["off"],
29+
"import/no-named-default": ["off"],
30+
"import/prefer-default-export": ["off"],
31+
"jsx-a11y/anchor-is-valid": ["off"],
32+
"jsx-a11y/click-events-have-key-events": ["off"],
33+
"jsx-a11y/label-has-for": [ "error", { "required": { "every": ["id"] }, "allowChildren": true } ],
34+
"jsx-a11y/no-noninteractive-element-interactions": ["off"],
35+
"jsx-a11y/no-static-element-interactions": ["off"],
36+
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
37+
"no-use-before-define": ["error", { "variables": false }],
38+
"react/prop-types": 0,
39+
"no-alert": 0,
40+
"no-console": 0
41+
}
42+
}

App.js

+8-7
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@ import {
99
Platform,
1010
StyleSheet,
1111
Text,
12-
View
12+
View,
1313
} from 'react-native';
1414

1515
const instructions = Platform.select({
16-
ios: 'Press Cmd+R to reload,\n' +
17-
'Cmd+D or shake for dev menu',
18-
android: 'Double tap R on your keyboard to reload,\n' +
19-
'Shake or press menu button for dev menu',
16+
ios: 'Press Cmd+R to reload,\n'
17+
+ 'Cmd+D or shake for dev menu',
18+
android: 'Double tap R on your keyboard to reload,\n'
19+
+ 'Shake or press menu button for dev menu',
2020
});
2121

22-
type Props = {};
23-
export default class App extends Component<Props> {
22+
export default class App extends Component {
23+
state = {};
24+
2425
render() {
2526
return (
2627
<View style={styles.container}>

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 React Bangalore
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Advanced React Native Workshop
2+
3+
## Problem Statement
4+
5+
To create a React Native Notes App with all CRUD operations.
6+
7+
8+
## Workshop Agenda
9+
10+
1. Recap to the previous workshop - [https://github.com/ReactBangalore/react-native-workshop]
11+
2. Use [https://jsonplaceholder.typicode.com/] to setup a basic server, test all basic end points
12+
3. Setup the React Native project using `react native init`.
13+
4. Add ListingScreen and a NewPostScreen
14+
- Use NewPostScreen to make a new post
15+
- List all the posts on the ListingScreen
16+
5. Add Edit Post and Delete Post options
17+
6. Debugging like a pro - Demo
18+
7. Discuss great UI practices
19+
8. Adding Deep Linking to your app

package.json

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
2-
"name": "ReactNativeAdvancedWorkshop",
2+
"name": "react-native-notebook",
3+
"description": "A not so simple boilerplate with some alleged React Native best practices. ",
4+
"slug": "react-native-notebook",
5+
"license": "MIT",
36
"version": "0.0.1",
47
"private": true,
58
"scripts": {
@@ -8,15 +11,24 @@
811
},
912
"dependencies": {
1013
"react": "16.3.1",
11-
"react-native": "0.55.4"
14+
"react-native": "0.55.4",
15+
"react-native-vector-icons": "^4.6.0",
16+
"react-navigation": "^2.5.5"
1217
},
1318
"devDependencies": {
19+
"babel-eslint": "^8.2.5",
1420
"babel-jest": "23.4.2",
1521
"babel-preset-react-native": "4.0.0",
22+
"eslint": "^5.0.1",
23+
"eslint-config-airbnb": "^17.0.0",
24+
"eslint-plugin-import": "^2.13.0",
25+
"eslint-plugin-jsx-a11y": "^6.0.3",
26+
"eslint-plugin-react": "^7.10.0",
1627
"jest": "23.5.0",
1728
"react-test-renderer": "16.3.1"
1829
},
1930
"jest": {
2031
"preset": "react-native"
21-
}
22-
}
32+
},
33+
"repository": "https://github.com/ReactBangalore/advanced-react-native-workshop",
34+
}

0 commit comments

Comments
 (0)