Skip to content

Commit a7c2fd4

Browse files
authored
feat: Add Expo example with New Architecture support (#317)
* move example app to examples * add expo example app * add with notifications app
1 parent ad7e523 commit a7c2fd4

File tree

231 files changed

+28333
-51966
lines changed

Some content is hidden

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

231 files changed

+28333
-51966
lines changed

.circleci/config.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
command: curl -Ls "https://get.maestro.mobile.dev" | bash
125125

126126
- run:
127-
working_directory: example/test
127+
working_directory: examples/example/test
128128
name: Build android
129129
command: yarn run build:android
130130

@@ -141,10 +141,10 @@ jobs:
141141
- run:
142142
name: Install app on emulator
143143
command: |
144-
adb install -r ~/project/example/android/app/build/outputs/apk/release/app-release.apk
144+
adb install -r ~/project/examples/example/android/app/build/outputs/apk/release/app-release.apk
145145
146146
- run:
147-
working_directory: example/test
147+
working_directory: examples/example/test
148148
name: Run UI Tests
149149
command: yarn run test:android
150150

@@ -161,25 +161,25 @@ jobs:
161161
- <<: *setup_env_file
162162

163163
- run:
164-
working_directory: example/e2e
164+
working_directory: examples/example/e2e
165165
name: Install Maestro
166166
command: curl -Ls "https://get.maestro.mobile.dev" | bash
167167

168168
- restore_cache:
169169
keys:
170-
- pod-dependencies-{{ checksum "~/project/example/ios/Podfile" }}
170+
- pod-dependencies-{{ checksum "~/project/examples/example/ios/Podfile" }}
171171
- run:
172-
working_directory: example/ios
172+
working_directory: examples/example/ios
173173
name: Install Pods
174174
command: pod install
175175

176176
- save_cache:
177-
key: pod-dependencies-{{ checksum "~/project/example/ios/Podfile" }}
177+
key: pod-dependencies-{{ checksum "~/project/examples/example/ios/Podfile" }}
178178
paths:
179-
- ~/project/example/ios/Pods
179+
- ~/project/examples/example/ios/Pods
180180

181181
- run:
182-
working_directory: example/test
182+
working_directory: examples/example/test
183183
name: Build
184184
command: yarn run build:ios
185185

@@ -193,10 +193,10 @@ jobs:
193193
- run:
194194
name: Install app on simulator
195195
command: |
196-
xcrun simctl install booted ~/project/example/test/build/Build/Products/Release-iphonesimulator/IntercomReactNativeExampleUI.app
196+
xcrun simctl install booted ~/project/examples/example/test/build/Build/Products/Release-iphonesimulator/IntercomReactNativeExampleUI.app
197197
198198
- run:
199-
working_directory: example/test
199+
working_directory: examples/example/test
200200
name: Run UI Tests
201201
command: yarn run test:ios
202202

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
team-messenger:
2-
- base-branch: 'main'
2+
- base-branch: 'main'

.github/workflows/labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Pull Request Labeler"
1+
name: 'Pull Request Labeler'
22
on:
33
- pull_request_target
44

@@ -9,4 +9,4 @@ jobs:
99
pull-requests: write
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/labeler@v5
12+
- uses: actions/labeler@v5

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ local.properties
4141
android.iml
4242

4343
# Ruby
44-
example/vendor/
44+
examples/*/vendor/
4545

4646
# Cocoapods
4747
#
48-
example/ios/Pods
48+
examples/*/ios/Pods
4949

5050
# node.js
5151
#

.yarnrc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ nmHoistingLimits: workspaces
33

44
plugins:
55
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
6-
spec: "@yarnpkg/plugin-interactive-tools"
6+
spec: '@yarnpkg/plugin-interactive-tools'
77
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
8-
spec: "@yarnpkg/plugin-workspace-tools"
8+
spec: '@yarnpkg/plugin-workspace-tools'
99

1010
yarnPath: .yarn/releases/yarn-3.6.1.cjs

CONTRIBUTING.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ yarn
1212

1313
> While it's possible to use [`npm`](https://github.com/npm/cli), the tooling is built around [`yarn`](https://classic.yarnpkg.com/), so you'll have an easier time if you use `yarn` for development.
1414
15-
While developing, you can run the [example app](/example/) to test your changes. Any changes you make in your library's JavaScript code will be reflected in the example app without a rebuild. If you change any native code, then you'll need to rebuild the example app.
15+
While developing, you can run the example apps to test your changes:
16+
17+
- **[Standard Example](/examples/example/)** - Full React Native app (Runs on Old React Native Architecture)
18+
- **[Expo Example](/examples/expo-example/)** - Expo-based app (Runs on New React Native Architecture)
19+
20+
Any changes you make in your library's JavaScript code will be reflected in the example apps without a rebuild. If you change any native code, then you'll need to rebuild the example apps.
1621

1722
To start the packager:
1823

@@ -51,9 +56,9 @@ Remember to add tests for your change if possible. Run the unit tests by:
5156
yarn test
5257
```
5358

54-
To edit the Objective-C files, open `example/ios/IntercomReactNativeExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > intercom-react-native`.
59+
To edit the Objective-C files, open `examples/example/ios/IntercomReactNativeExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > intercom-react-native`.
5560

56-
To edit the Kotlin files, open `example/android` in Android studio and find the source files at `intercomreactnative` under `Android`.
61+
To edit the Kotlin files, open `examples/example/android` in Android studio and find the source files at `intercomreactnative` under `Android`.
5762

5863
### Commit message convention
5964

@@ -104,7 +109,7 @@ The `package.json` file contains various scripts for common tasks:
104109
105110
When you're sending a pull request:
106111

107-
### Make sure that Pull Request target is `dev` branch.
112+
### Make sure that Pull Request target is `dev` branch
108113

109114
- Prefer small pull requests focused on one change.
110115
- Verify that linters and tests are passing.
@@ -188,11 +193,11 @@ Community leaders will follow these Community Impact Guidelines in determining t
188193
### Attribution
189194

190195
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
191-
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
196+
available at [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
192197

193198
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
194199

195200
[homepage]: https://www.contributor-covenant.org
196201

197202
For answers to common questions about this code of conduct, see the FAQ at
198-
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
203+
[https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are available at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations).

0 commit comments

Comments
 (0)