File tree Expand file tree Collapse file tree 5 files changed +38
-8
lines changed Expand file tree Collapse file tree 5 files changed +38
-8
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,32 @@ Assigns a single image for the track. Only static images are supported. The cent
263
263
| ---------------------- | -------- | -------- |
264
264
| Image.propTypes.source | No | iOS |
265
265
266
+ ## Contributing
267
+
268
+ While developing, you can run the [ example app] ( /example/README.md ) to test your changes.
269
+
270
+ Make sure your code passes Flow, ESLint and the tests. Run the following to verify:
271
+
272
+ ``` sh
273
+ yarn validate:flow
274
+ yarn validate:eslint
275
+ yarn test:jest
276
+ ```
277
+ or
278
+
279
+ ``` sh
280
+ yarn test
281
+ ```
282
+ to run them all.
283
+
284
+ To fix formatting errors, run the following:
285
+
286
+ ``` sh
287
+ yarn validate:eslint --fix
288
+ ```
289
+
290
+ Remember to cover your changes with tests if possible.
291
+
266
292
## Maintainers
267
293
268
294
- [ Michał Chudziak] ( https://github.com/michalchudziak ) - [ Callstack] ( https://callstack.com/ )
Original file line number Diff line number Diff line change
1
+ # Run the example locally
2
+
3
+ - Clone the repository
4
+ - Run ` yarn ` to install the dependencies
5
+ - Checkout to this directory ` cd example `
6
+ - Run ` yarn run:android ` or ` yarn run:ios ` to start packager and the app
Original file line number Diff line number Diff line change 3
3
"name" : " example" ,
4
4
"version" : " 0.0.1" ,
5
5
"scripts" : {
6
- "start" : " node node_modules/react-native/local-cli/cli.js start"
6
+ "start" : " node node_modules/react-native/local-cli/cli.js start" ,
7
+ "run:android" : " react-native run-android" ,
8
+ "run:ios" : " react-native run-ios"
7
9
},
8
10
"dependencies" : {
9
11
"react" : " 16.9.0" ,
10
12
"react-native" : " 0.61.2" ,
11
13
"@react-native-community/slider" : " ./src"
12
14
}
13
- }
15
+ }
Original file line number Diff line number Diff line change 2
2
"private" : true ,
3
3
"workspaces" : [" src" , " example" ],
4
4
"scripts" : {
5
- "validate:eslint" : " eslint src" ,
5
+ "validate:eslint" : " eslint src example " ,
6
6
"validate:flow" : " flow check src" ,
7
7
"test:jest" : " jest src" ,
8
8
"test" : " yarn validate:eslint && yarn validate:flow && yarn test:jest"
Original file line number Diff line number Diff line change 10
10
},
11
11
"main" : " js/Slider.js" ,
12
12
"types" : " typings/index.d.ts" ,
13
- "scripts" : {
14
- "start" : " node node_modules/react-native/local-cli/cli.js start" ,
15
- "start:android" : " react-native run-android --root example/"
16
- },
17
13
"keywords" : [
18
14
" react-native" ,
19
15
" react native" ,
42
38
"type" : " git" ,
43
39
"url" : " https://github.com/react-native-community/react-native-slider.git"
44
40
}
45
- }
41
+ }
You can’t perform that action at this time.
0 commit comments