Skip to content

Commit

Permalink
feat: replace example app with an expo one (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw authored Feb 25, 2023
1 parent b4ed276 commit 767914f
Show file tree
Hide file tree
Showing 162 changed files with 4,039 additions and 8,507 deletions.
52 changes: 0 additions & 52 deletions .ci/danger/dangerfile.ts

This file was deleted.

19 changes: 0 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,6 @@ jobs:
- addons
- app

native-smoke-tests:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Bootstrap
command: yarn bootstrap --core
- run:
name: Run React-Native-App example
command: |
cd examples/crna-kitchen-sink
yarn storybook --smoke-test
- run:
name: Publish React-Native-App example
command: |
./scripts/crna-publish.js
lint:
<<: *defaults
steps:
Expand Down
6 changes: 1 addition & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ built-storybooks
!.eslintrc-markdown.js
!.jest.config.js
!.storybook
examples/native/e2e/init.ts
examples/native/ios
examples/native/android
examples/native/metro.config.js
examples/native/index.html
examples/expo-example/metro.config.js
storybook.requires.js
jest.config.js
app/react-native/scripts/mocks
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Issue:

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

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

If your answer is yes to any of these, please make sure to include it in your PR.
Expand Down
26 changes: 0 additions & 26 deletions .github/autolabeler.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/detox.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/label.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ junit.xml
coverage/
*.lerna_backup
build
packages/examples/automated-*
/**/LICENSE
docs/public
packs/*.tgz
Expand All @@ -23,7 +22,6 @@ package-lock.json
storybook-static
integration/__image_snapshots__/__diff_output__
.jest-test-results.json
/examples/cra-kitchen-sink/src/__image_snapshots__/__diff_output__/
lib/*.jar
lib/**/dll
.expo/packager-info.json
Expand Down
3 changes: 1 addition & 2 deletions .remarkignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
CHANGELOG.md
examples/native/ios
CHANGELOG.md
33 changes: 0 additions & 33 deletions .vscode/launch.json

This file was deleted.

17 changes: 5 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cd react-native-storybook
yarn bootstrap --core

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

### Working with the example app

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.
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.

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.

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.

```
cd examples/native
cd examples/expo-example
cd ios
pod install
cd ..
# start Metro and leave it running on the background
yarn start
# for ios, run in another terminal
# for ios
yarn ios
# for android, run in another terminal
# for android
yarn android
```

Expand Down
1 change: 0 additions & 1 deletion __mocks__/fileMock.js

This file was deleted.

21 changes: 0 additions & 21 deletions __mocks__/fs.js

This file was deleted.

1 change: 0 additions & 1 deletion __mocks__/htmlMock.js

This file was deleted.

35 changes: 0 additions & 35 deletions __mocks__/inject-decorator.flow-stories.txt

This file was deleted.

3 changes: 0 additions & 3 deletions __mocks__/inject-decorator.no-stories.txt

This file was deleted.

Loading

0 comments on commit 767914f

Please sign in to comment.