Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support React Native 0.71 #2313

Merged
merged 26 commits into from
Jan 13, 2023
Merged

Support React Native 0.71 #2313

merged 26 commits into from
Jan 13, 2023

Conversation

j-piasecki
Copy link
Member

@j-piasecki j-piasecki commented Nov 9, 2022

Description

This PR adds support for new architecture on React Native 0.71, which most notably includes the usage of prefabs in native builds.

It also removes most of the dependencies of FabricExample app, so upgrades in the future should be easier.

android/build.gradle Outdated Show resolved Hide resolved
android/build.gradle Outdated Show resolved Hide resolved
android/build.gradle Outdated Show resolved Hide resolved
FabricExample/patches/react-native+0.71.0-rc.0.patch Outdated Show resolved Hide resolved
FabricExample/package.json Outdated Show resolved Hide resolved
android/build.gradle Outdated Show resolved Hide resolved
Co-authored-by: Kacper Kafara <kacperkafara@gmail.com>
kkafar added a commit to software-mansion/react-native-screens that referenced this pull request Jan 11, 2023
## Description

It seems that autolinking got complete overhaul in 0.71.0 as
`android/app/src/main/jni` directory was deleted -> thus it works
differently for sure now.

Still need to dive into it.

**FabricTestExample**

* [x] Android
* [x] iOS

**TestsExample**

* #1679

**FabricExample**

* #1680

**TODO**: Consider whether to use `com.facebook.react:react-native:+` or
`com.facebook.react:react-native` (without `+`) in
`android/build.gradle` of the library.

AFAIK the former takes highest available version from defined
repositories (should be `node_modules`?), the latter uses version
injected by React Native Gradle Plugin (but I believe it works since
React Native 0.71.0 or 0.70.0 (need to check) -- so version check might
be necessary).


Decided to leave:

```gradle
implementation 'com.facebook.react:react-native:+'
```

in library's `android/build.gradle` due to following reasons: 

* [Android's readme in RN
repo](https://github.com/facebook/react-native/blob/e108e9ebf1e6c52b6eeffeb6c41f842ad95baa0d/android/README.md)
* [Road to 0.71.0
post](reactwg/react-native-releases#41 (reply in thread))

Blocked by:

* ~facebook/react-native#35306
*
~software-mansion/react-native-reanimated#3745
*
~software-mansion/react-native-gesture-handler#2313
(decided to fix version on commit)
* ~`react-native-safe-area-context` - lacks support for RN71~ (created
patch)
* ~`@react-native-community/cli-platform-android` requires this patch:
kkafar/RNS-tester@9edaaa9.
The patch is already merged, but it is not shipped with `react-native`
yet.~

**NOTE**: Example application will handled in separate PR, as there are
problems with detox (it does not support 0.71 yet) and we run CI on that
app.

## Changes

* Updated examples 
* Updated library's build code

## Test code and steps to reproduce

Run example applications

## Checklist

- [ ] Ensured that CI passes
@j-piasecki j-piasecki merged commit bd7e899 into main Jan 13, 2023
@j-piasecki j-piasecki deleted the @jpiasecki/new-arch-0-71-support branch January 13, 2023 08:29
hyochan referenced this pull request in hyochan/dooboo-ui Mar 12, 2023
…266)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[react-native-gesture-handler](https://togithub.com/software-mansion/react-native-gesture-handler)
| [`~2.8.0` ->
`~2.9.0`](https://renovatebot.com/diffs/npm/react-native-gesture-handler/2.8.0/2.9.0)
|
[![age](https://badges.renovateapi.com/packages/npm/react-native-gesture-handler/2.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/react-native-gesture-handler/2.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/react-native-gesture-handler/2.9.0/compatibility-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/react-native-gesture-handler/2.9.0/confidence-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>software-mansion/react-native-gesture-handler</summary>

###
[`v2.9.0`](https://togithub.com/software-mansion/react-native-gesture-handler/releases/tag/2.9.0)

[Compare
Source](https://togithub.com/software-mansion/react-native-gesture-handler/compare/2.8.0...2.9.0)

#### ❗ Important changes

- Support React Native 0.71 by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2313](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2313)

#### 🐛 Bug fixes

- Use `ReturnType` instead of explicit `AnimatedInterpolation` type by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2294](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2294)
- Fix default `shouldCancelWhenOutside` on iOS and Android by
[@&#8203;Warus15](https://togithub.com/Warus15) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2297](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2297)
- Fix `onBegin` and `onTouchesDown` event ordering on iOS by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2278](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2278)
- Fix buttons getting locked in some cases on Android by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2315](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2315)
- fix RNGH not working in pnpm project by
[@&#8203;chj-damon](https://togithub.com/chj-damon) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2334](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2334)
- GestureDetector: more checks for mounted component by
[@&#8203;phryneas](https://togithub.com/phryneas) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2335](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2335)
- Fix `GestureDetector` not working when the underlying view changes by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2092](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2092)
- Cocoapods: Fix deprecated/removed File.exists method by
[@&#8203;tomekzaw](https://togithub.com/tomekzaw) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2368](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2368)

#### 🔢 Miscellaneous

- Update React Native to 0.70.3 in the example apps by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2267](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2267)
- Reformat iOS codebase by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2296](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2296)
- Update the commit hash in `.git-blame-ignore-revs` by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2306](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2306)
- Provide proper Algolia Search API key by
[@&#8203;kacperkapusciak](https://togithub.com/kacperkapusciak) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2308](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2308)
- Fix search modal styling in the docs by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2309](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2309)
- Bump loader-utils from 2.0.0 to 2.0.3 in /docs by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2311](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2311)
- Fixed typo in doc: cancelsToucesInView > cancelsTouchesInView by
[@&#8203;vidalmaxime](https://togithub.com/vidalmaxime) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2318](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2318)
- Bump decode-uri-component from 0.2.0 to 0.2.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2338](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2338)
- Bump loader-utils from 2.0.3 to 2.0.4 in /docs by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2321](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2321)
- Bump qs from 6.10.1 to 6.11.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2342](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2342)
- Bump decode-uri-component from 0.2.0 to 0.2.2 in /FabricExample by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2340](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2340)
- \[docs] Fixed doubleTap example in docs by
[@&#8203;robwalkerco](https://togithub.com/robwalkerco) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2349](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2349)
- Bump json5 from 2.2.1 to 2.2.3 in /docs by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2366](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2366)
- Bump json5 from 2.2.1 to 2.2.3 in /FabricExample by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2365](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2365)

#### New Contributors

- [@&#8203;vidalmaxime](https://togithub.com/vidalmaxime) made their
first contribution in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2318](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2318)
- [@&#8203;chj-damon](https://togithub.com/chj-damon) made their first
contribution in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2334](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2334)
- [@&#8203;robwalkerco](https://togithub.com/robwalkerco) made their
first contribution in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2349](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2349)

**Full Changelog**:
software-mansion/react-native-gesture-handler@2.8.0...2.9.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/dooboolab/dooboo-ui).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
hyochan referenced this pull request in hyochan/dooboo-ui Mar 19, 2023
…296)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[react-native-gesture-handler](https://togithub.com/software-mansion/react-native-gesture-handler)
| [`2.8.0` ->
`2.9.0`](https://renovatebot.com/diffs/npm/react-native-gesture-handler/2.8.0/2.9.0)
|
[![age](https://badges.renovateapi.com/packages/npm/react-native-gesture-handler/2.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/react-native-gesture-handler/2.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/react-native-gesture-handler/2.9.0/compatibility-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/react-native-gesture-handler/2.9.0/confidence-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>software-mansion/react-native-gesture-handler</summary>

###
[`v2.9.0`](https://togithub.com/software-mansion/react-native-gesture-handler/releases/tag/2.9.0)

[Compare
Source](https://togithub.com/software-mansion/react-native-gesture-handler/compare/2.8.0...2.9.0)

#### ❗ Important changes

- Support React Native 0.71 by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2313](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2313)

#### 🐛 Bug fixes

- Use `ReturnType` instead of explicit `AnimatedInterpolation` type by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2294](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2294)
- Fix default `shouldCancelWhenOutside` on iOS and Android by
[@&#8203;Warus15](https://togithub.com/Warus15) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2297](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2297)
- Fix `onBegin` and `onTouchesDown` event ordering on iOS by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2278](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2278)
- Fix buttons getting locked in some cases on Android by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2315](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2315)
- fix RNGH not working in pnpm project by
[@&#8203;chj-damon](https://togithub.com/chj-damon) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2334](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2334)
- GestureDetector: more checks for mounted component by
[@&#8203;phryneas](https://togithub.com/phryneas) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2335](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2335)
- Fix `GestureDetector` not working when the underlying view changes by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2092](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2092)
- Cocoapods: Fix deprecated/removed File.exists method by
[@&#8203;tomekzaw](https://togithub.com/tomekzaw) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2368](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2368)

#### 🔢 Miscellaneous

- Update React Native to 0.70.3 in the example apps by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2267](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2267)
- Reformat iOS codebase by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2296](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2296)
- Update the commit hash in `.git-blame-ignore-revs` by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2306](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2306)
- Provide proper Algolia Search API key by
[@&#8203;kacperkapusciak](https://togithub.com/kacperkapusciak) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2308](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2308)
- Fix search modal styling in the docs by
[@&#8203;j-piasecki](https://togithub.com/j-piasecki) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2309](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2309)
- Bump loader-utils from 2.0.0 to 2.0.3 in /docs by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2311](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2311)
- Fixed typo in doc: cancelsToucesInView > cancelsTouchesInView by
[@&#8203;vidalmaxime](https://togithub.com/vidalmaxime) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2318](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2318)
- Bump decode-uri-component from 0.2.0 to 0.2.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2338](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2338)
- Bump loader-utils from 2.0.3 to 2.0.4 in /docs by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2321](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2321)
- Bump qs from 6.10.1 to 6.11.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2342](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2342)
- Bump decode-uri-component from 0.2.0 to 0.2.2 in /FabricExample by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2340](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2340)
- \[docs] Fixed doubleTap example in docs by
[@&#8203;robwalkerco](https://togithub.com/robwalkerco) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2349](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2349)
- Bump json5 from 2.2.1 to 2.2.3 in /docs by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2366](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2366)
- Bump json5 from 2.2.1 to 2.2.3 in /FabricExample by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2365](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2365)

#### New Contributors

- [@&#8203;vidalmaxime](https://togithub.com/vidalmaxime) made their
first contribution in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2318](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2318)
- [@&#8203;chj-damon](https://togithub.com/chj-damon) made their first
contribution in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2334](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2334)
- [@&#8203;robwalkerco](https://togithub.com/robwalkerco) made their
first contribution in
[https://github.com/software-mansion/react-native-gesture-handler/pull/2349](https://togithub.com/software-mansion/react-native-gesture-handler/pull/2349)

**Full Changelog**:
software-mansion/react-native-gesture-handler@2.8.0...2.9.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/dooboolab/dooboo-ui).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzUuMTEuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
mccoyplayer pushed a commit to mccoyplayer/reactScreen that referenced this pull request Feb 9, 2024
## Description

It seems that autolinking got complete overhaul in 0.71.0 as
`android/app/src/main/jni` directory was deleted -> thus it works
differently for sure now.

Still need to dive into it.

**FabricTestExample**

* [x] Android
* [x] iOS

**TestsExample**

* software-mansion/react-native-screens#1679

**FabricExample**

* software-mansion/react-native-screens#1680

**TODO**: Consider whether to use `com.facebook.react:react-native:+` or
`com.facebook.react:react-native` (without `+`) in
`android/build.gradle` of the library.

AFAIK the former takes highest available version from defined
repositories (should be `node_modules`?), the latter uses version
injected by React Native Gradle Plugin (but I believe it works since
React Native 0.71.0 or 0.70.0 (need to check) -- so version check might
be necessary).


Decided to leave:

```gradle
implementation 'com.facebook.react:react-native:+'
```

in library's `android/build.gradle` due to following reasons: 

* [Android's readme in RN
repo](https://github.com/facebook/react-native/blob/e108e9ebf1e6c52b6eeffeb6c41f842ad95baa0d/android/README.md)
* [Road to 0.71.0
post](reactwg/react-native-releases#41 (reply in thread))

Blocked by:

* ~facebook/react-native#35306
*
~software-mansion/react-native-reanimated#3745
*
~software-mansion/react-native-gesture-handler#2313
(decided to fix version on commit)
* ~`react-native-safe-area-context` - lacks support for RN71~ (created
patch)
* ~`@react-native-community/cli-platform-android` requires this patch:
kkafar/RNS-tester@9edaaa9.
The patch is already merged, but it is not shipped with `react-native`
yet.~

**NOTE**: Example application will handled in separate PR, as there are
problems with detox (it does not support 0.71 yet) and we run CI on that
app.

## Changes

* Updated examples 
* Updated library's build code

## Test code and steps to reproduce

Run example applications

## Checklist

- [ ] Ensured that CI passes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants