Skip to content

Commit 767914f

Browse files
authored
feat: replace example app with an expo one (storybookjs#435)
1 parent b4ed276 commit 767914f

File tree

162 files changed

+4039
-8507
lines changed

Some content is hidden

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

162 files changed

+4039
-8507
lines changed

.ci/danger/dangerfile.ts

Lines changed: 0 additions & 52 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,6 @@ jobs:
3838
- addons
3939
- app
4040

41-
native-smoke-tests:
42-
<<: *defaults
43-
steps:
44-
- checkout
45-
- attach_workspace:
46-
at: .
47-
- run:
48-
name: Bootstrap
49-
command: yarn bootstrap --core
50-
- run:
51-
name: Run React-Native-App example
52-
command: |
53-
cd examples/crna-kitchen-sink
54-
yarn storybook --smoke-test
55-
- run:
56-
name: Publish React-Native-App example
57-
command: |
58-
./scripts/crna-publish.js
59-
6041
lint:
6142
<<: *defaults
6243
steps:

.eslintignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ built-storybooks
1818
!.eslintrc-markdown.js
1919
!.jest.config.js
2020
!.storybook
21-
examples/native/e2e/init.ts
22-
examples/native/ios
23-
examples/native/android
24-
examples/native/metro.config.js
25-
examples/native/index.html
21+
examples/expo-example/metro.config.js
2622
storybook.requires.js
2723
jest.config.js
2824
app/react-native/scripts/mocks

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Issue:
66

77
Please explain how to test your changes and consider the following questions
88

9-
- Does this need a new example in examples/native?
9+
- Does this need a new example in examples/expo-example?
1010
- Does this need an update to the documentation?
1111

1212
If your answer is yes to any of these, please make sure to include it in your PR.

.github/autolabeler.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/detox.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/label.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ junit.xml
1414
coverage/
1515
*.lerna_backup
1616
build
17-
packages/examples/automated-*
1817
/**/LICENSE
1918
docs/public
2019
packs/*.tgz
@@ -23,7 +22,6 @@ package-lock.json
2322
storybook-static
2423
integration/__image_snapshots__/__diff_output__
2524
.jest-test-results.json
26-
/examples/cra-kitchen-sink/src/__image_snapshots__/__diff_output__/
2725
lib/*.jar
2826
lib/**/dll
2927
.expo/packager-info.json

.remarkignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
CHANGELOG.md
2-
examples/native/ios
1+
CHANGELOG.md

.vscode/launch.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ cd react-native-storybook
4040
yarn bootstrap --core
4141

4242
# make changes to try and reproduce the problem, such as adding components + stories
43-
cd examples/native
43+
cd examples/expo-example
4444
# for ios
4545
yarn ios
4646
# for android
@@ -180,26 +180,19 @@ Once you have this running then you can run the example app to see your changes.
180180

181181
### Working with the example app
182182

183-
The `examples/native` folder of the repo has an example storybook implementation built with the react-native cli. It shows many of the options and add-ons available and is automatically linked to all the development packages. We highly encourage you to use it to develop/test contributions on.
183+
The `examples/expo-example` folder of the repo has an example storybook implementation built with the react-native cli. It shows many of the options and add-ons available and is automatically linked to all the development packages. We highly encourage you to use it to develop/test contributions on.
184184

185185
You still need to yarn dev or you won't see your changes reflected in the app. For example if I change an addon or app/react-native I need to rebuild the code for the changes take effect (yarn prepare) or `yarn dev` can do this automatically as I make changes.
186186

187187
If this is your first time running react native from the cli follow the setup instructions in the [react native documentation](https://reactnative.dev/docs/environment-setup) to get everything setup correctly.
188188

189189
```
190-
cd examples/native
190+
cd examples/expo-example
191191
192-
cd ios
193-
pod install
194-
cd ..
195-
196-
# start Metro and leave it running on the background
197-
yarn start
198-
199-
# for ios, run in another terminal
192+
# for ios
200193
yarn ios
201194
202-
# for android, run in another terminal
195+
# for android
203196
yarn android
204197
```
205198

__mocks__/fileMock.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

__mocks__/fs.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

__mocks__/htmlMock.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

__mocks__/inject-decorator.flow-stories.txt

Lines changed: 0 additions & 35 deletions
This file was deleted.

__mocks__/inject-decorator.no-stories.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)