Skip to content

Commit 5a0c47f

Browse files
committed
update example: add eslintignore, prettierignore; update readme; update to latest react-native-thumbnail-selector
1 parent d035c81 commit 5a0c47f

File tree

7 files changed

+48
-26
lines changed

7 files changed

+48
-26
lines changed

example/.eslintignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules/
2+
yarn.lock
3+
.gitignore
4+
.gitattributes
5+
.flowconfig
6+
.buckconfig
7+
.prettierignore
8+
.watchmanconfig
9+
android/
10+
ios/
11+
assets/

example/.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
android
2+
ios
3+
node_modules
4+
src

example/.watchmanconfig

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

example/README.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,27 @@
22

33
## Installation
44

5-
* ```brew install node```
6-
* ```brew install yarn```
7-
* ```brew install watchman```
8-
* ```gem install cocoapods```
5+
- Homebrew <https://brew.sh/>
6+
- Node <https://nodejs.org/> `brew install node`
7+
- Yarn package manager <https://yarnpkg.com/> `brew install yarn`
8+
- Watchman <https://github.com/facebook/watchman> `brew install watchman`
9+
- Cocoapods <https://cocoapods.org/> `sudo gem install cocoapods`
10+
- Xcode <https://apps.apple.com/us/app/xcode/id497799835?mt=12>
11+
- Android Studio <https://developer.android.com/studio/>
912

1013
## Up and running
1114

12-
1. Navigate to example directory (```cd ~/example```).
13-
2. Install dependencies: ```yarn```.
14-
3. Examine your environment: ```yarn doctor```. Fix any errors before proceeding.
15-
4. Install iOS cocoapods: ```yarn ios:pod```
16-
5. Start Metro Bundler: ```yarn start```.
17-
6. For iOS, ```yarn ios```.
18-
7. For Android, ```yarn android```.
15+
Pre-requisite: Installation
16+
17+
1. Navigate to example directory (`cd ~/Example`).
18+
2. Install dependencies: `yarn`.
19+
3. Examine your development environment: `yarn doctor`. Fix any errors before proceeding to next step.
20+
4. Install iOS dependencies: `yarn ios:pod`.
21+
5. Start the Metro Bundler: `yarn start`.
22+
6. Install and run on iOS simulator: `yarn ios`.
23+
7. Install and run on Android emulator: `yarn android`.
1924

2025
## References
2126

22-
* <https://reactnative.dev/docs/getting-started.html>
23-
* <https://reactnative.dev/docs/environment-setup>
27+
- <https://reactnative.dev/docs/getting-started>
28+
- <https://reactnative.dev/docs/environment-setup>

example/app.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name": "example",
3-
"displayName": "example"
4-
}
2+
"name": "example",
3+
"displayName": "example"
4+
}

example/package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"android": "npx react-native run-android",
7-
"ios": "npx react-native run-ios",
6+
"test": "npx jest",
87
"start": "npx react-native start",
9-
"test": "jest",
8+
"ios": "npx react-native run-ios",
9+
"android": "npx react-native run-android",
1010
"lint": "eslint .",
11+
"lint:fix": "eslint . --fix",
1112
"ios:pod": "cd ios && pod install && cd ..",
1213
"android:clean": "cd android && ./gradlew clean && cd ..",
13-
"doctor": "npx react-native doctor"
14+
"doctor": "npx react-native doctor",
15+
"prettier": "npx prettier --check ."
1416
},
1517
"dependencies": {
1618
"react": "17.0.2",
1719
"react-native": "0.66.4",
18-
"react-native-thumbnail-selector": "4.0.0"
20+
"react-native-thumbnail-selector": "4.1.0"
1921
},
2022
"devDependencies": {
2123
"@babel/core": "7.12.9",

example/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5560,10 +5560,10 @@ react-native-codegen@^0.0.7:
55605560
jscodeshift "^0.11.0"
55615561
nullthrows "^1.1.1"
55625562

5563-
react-native-thumbnail-selector@4.0.0:
5564-
version "4.0.0"
5565-
resolved "https://registry.yarnpkg.com/react-native-thumbnail-selector/-/react-native-thumbnail-selector-4.0.0.tgz#3728b91b7a408261d94f8258bf88d4e4756e770c"
5566-
integrity sha512-hvucCN2u2XckeJlWZwPcn/5aLqq+jORBB8YgYFI/Vblm3jWLp3sD68yvngvNhIwonP2zgNSOiNcVJo2J5qmY8w==
5563+
react-native-thumbnail-selector@4.1.0:
5564+
version "4.1.0"
5565+
resolved "https://registry.yarnpkg.com/react-native-thumbnail-selector/-/react-native-thumbnail-selector-4.1.0.tgz#a0a29b03a99a66879f6617169e5c5754b1abac98"
5566+
integrity sha512-hIfGfkappDRls4TbgOVc68v1z9sZICQsRKR9DSi/8J+6yanoEKCsQ9mkNBVZwCdTZtCBoIt6/Edvc0L3gQ8p6g==
55675567

55685568
react-native@0.66.4:
55695569
version "0.66.4"

0 commit comments

Comments
 (0)