Skip to content

Commit 94e662d

Browse files
committed
refactor example project to expo
1 parent 0ad17d7 commit 94e662d

Some content is hidden

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

70 files changed

+2589
-8428
lines changed

.gitignore

+33-1
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,41 @@ coverage
6262
RELEASE_NOTES.md
6363

6464
# Yarn
65+
example/.yarn/*
6566
.yarn/*
6667
!.yarn/patches
6768
!.yarn/plugins
6869
!.yarn/releases
6970
!.yarn/sdks
70-
!.yarn/versions
71+
!.yarn/versions
72+
73+
# Expo
74+
example/.expo/
75+
example/dist/
76+
example/web-build/
77+
example/expo-env.d.ts
78+
79+
# Native
80+
*.orig.*
81+
*.jks
82+
*.p8
83+
*.p12
84+
*.key
85+
*.mobileprovision
86+
87+
# Metro
88+
.metro-health-check*
89+
90+
# debug
91+
npm-debug.*
92+
yarn-debug.*
93+
yarn-error.*
94+
95+
# macOS
96+
*.pem
97+
98+
# local env files
99+
.env*.local
100+
101+
# typescript
102+
*.tsbuildinfo

example/.eslintignore

-12
This file was deleted.

example/.eslintrc.js

-4
This file was deleted.

example/.gitignore

+29-67
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,36 @@
1-
# OSX
2-
#
3-
.DS_Store
4-
5-
# Xcode
6-
#
7-
build/
8-
*.pbxuser
9-
!default.pbxuser
10-
*.mode1v3
11-
!default.mode1v3
12-
*.mode2v3
13-
!default.mode2v3
14-
*.perspectivev3
15-
!default.perspectivev3
16-
xcuserdata
17-
*.xccheckout
18-
*.moved-aside
19-
DerivedData
20-
*.hmap
21-
*.ipa
22-
*.xcuserstate
23-
**/.xcode.env.local
1+
# Learn more https://docs.github.com./en/get-started/getting-started-with-git/ignoring-files
242

25-
# Android/IntelliJ
26-
#
27-
build/
28-
.idea
29-
.gradle
30-
local.properties
31-
*.iml
32-
*.hprof
33-
.cxx/
34-
*.keystore
35-
!debug.keystore
36-
37-
# node.js
38-
#
3+
# dependencies
394
node_modules/
40-
npm-debug.log
41-
yarn-error.log
42-
43-
# fastlane
44-
#
45-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
46-
# screenshots whenever they are needed.
47-
# For more information about the recommended setup visit:
48-
# https://docs.fastlane.tools/best-practices/source-control/
495

50-
**/fastlane/report.xml
51-
**/fastlane/Preview.html
52-
**/fastlane/screenshots
53-
**/fastlane/test_output
54-
55-
# Bundle artifact
56-
*.jsbundle
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
expo-env.d.ts
11+
12+
# Native
13+
*.orig.*
14+
*.jks
15+
*.p8
16+
*.p12
17+
*.key
18+
*.mobileprovision
19+
20+
# Metro
21+
.metro-health-check*
5722

58-
# Ruby / CocoaPods
59-
**/Pods/
60-
/vendor/bundle/
23+
# debug
24+
npm-debug.*
25+
yarn-debug.*
26+
yarn-error.*
6127

62-
# Temporary files created by Metro to check the health of the file watcher
63-
.metro-health-check*
28+
# macOS
29+
.DS_Store
30+
*.pem
6431

65-
# testing
66-
/coverage
32+
# local env files
33+
.env*.local
6734

68-
# Yarn
69-
.yarn/*
70-
!.yarn/patches
71-
!.yarn/plugins
72-
!.yarn/releases
73-
!.yarn/sdks
74-
!.yarn/versions
35+
# typescript
36+
*.tsbuildinfo

example/.prettierignore

-4
This file was deleted.

example/.prettierrc.js

-7
This file was deleted.

example/.watchmanconfig

-1
This file was deleted.

example/Gemfile

-9
This file was deleted.

example/README.md

+13-15
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
# SimpleStepperExample
22

3+
- Built with [Expo](https://expo.dev/).
4+
- Uses [yarn](https://yarnpkg.com/) v2 modern edition.
5+
- Refer to [Expo setup guide](https://docs.expo.dev/get-started/set-up-your-environment/) for help running this and local environment.
6+
- Use [Expo Go](https://expo.dev/go) option.
7+
38
## Up and running
49

5-
Prerequisites
10+
### Prerequisites
11+
12+
- Have iOS simulator and Android emulator installed.
13+
- Have real mobile device.
614

7-
- Development machine is on MacOS.
8-
- Homebrew <https://brew.sh/>
9-
- Yarn package manager <https://yarnpkg.com/> `brew install yarn`
10-
- [Setup of development environment for iOS and Android](https://reactnative.dev/docs/environment-setup)
15+
### Steps
1116

1217
1. Open terminal.
1318
2. Change to example directory (`cd ~/example`).
14-
3. Run `yarn` to install Javascript dependencies.
15-
4. Run `yarn doctor` to assess development environment.
16-
5. Fix any development errors before proceeding to next step.
17-
6. Run `yarn ios:pod` to install Cocoapods dependencies.
18-
7. Run `yarn start` to start the Metro Bundler.
19-
8. Then enter `i` or `a` to run on iOS simulator or Android emulator.
20-
21-
## References
22-
23-
- <https://reactnative.dev/>
19+
3. Run `yarn install` to install dependencies.
20+
4. Run `yarn start` to start the development server.
21+
5. Enter `i` or `a` to run on iOS simulator or Android emulator.

example/__mocks__/react-native-simple-stepper.ts

-1
This file was deleted.

example/__tests__/App.test.tsx

-17
This file was deleted.

example/_bundle/config

-2
This file was deleted.

example/android/app/build.gradle

-119
This file was deleted.

example/android/app/debug.keystore

-2.2 KB
Binary file not shown.

example/android/app/proguard-rules.pro

-10
This file was deleted.

example/android/app/src/debug/AndroidManifest.xml

-9
This file was deleted.

0 commit comments

Comments
 (0)