Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
85a4196
feat!: iOS custom detents & Android form sheets (#2045)
kkafar Aug 10, 2024
8e1d28c
Release 4.0.0-beta.0
kkafar Aug 10, 2024
23770ad
docs: Add landing page for React Native Screens (#2240)
patrycjakalinska Aug 12, 2024
103d574
docs: Add workflow to publish GitHub pages (#2299)
tboba Aug 12, 2024
c02fb56
docs: Resolve correctly missing tv.svg file (#2300)
tboba Aug 12, 2024
29f8ecf
docs: Fix layout of screen sequence animation (#2303)
tboba Aug 13, 2024
7dd195b
chore(deps): bump rexml from 3.2.8 to 3.3.3 (#2298)
tboba Aug 19, 2024
c47ad84
fix(Android): incorrect childCount in removeViewAt when using flatlis…
alduzy Aug 20, 2024
a3ad76e
chore(Android): removed redundant FabricViewStateManager comment (#2310)
alduzy Aug 22, 2024
29c98e2
feat: add support for dynamic frameworks (#2315)
WoLewicki Aug 26, 2024
80dcad4
fix(iOS): Change import of RectUtil.h file to react/renderer/componen…
tboba Aug 27, 2024
34c1ba8
fix(Android,Fabric): pressable on `Screen` loses focus on pointer mov…
kkafar Aug 27, 2024
82a5226
chore(deps): bump rexml from 3.2.9 to 3.3.6 in /Example (#2314)
dependabot[bot] Aug 28, 2024
b7a51fc
docs: Fix placement of Hero on big screens (#2305)
patrycjakalinska Aug 29, 2024
fcee5e1
docs(readme): update FullWindowOverlay example path (#2326)
ilia-kurganskii Sep 2, 2024
ee7915f
fix: do not force set `translucent` nav bar (until it's explicitly sp…
kirillzyusko Sep 2, 2024
d424e1a
fix(Android): getChildDrawingOrder when using refreshcontrol (#2330)
BenIrving Sep 3, 2024
ef47538
docs: add Testimonials (#2333)
patrycjakalinska Sep 9, 2024
d394e2c
fix(Android): Request layout manually for CustomToolbar below Android…
tboba Sep 12, 2024
61ef186
fix(iOS): modal not presenting when deep in stack (#2335)
maksg Sep 12, 2024
52e9a82
chore(deps): bump express from 4.19.2 to 4.21.0 in /docs (#2348)
dependabot[bot] Sep 25, 2024
d01f960
chore(deps): bump serve-static from 1.15.0 to 1.16.2 in /Example (#2343)
dependabot[bot] Sep 25, 2024
f80281b
feat(Android): add ios like `ios_from_left` slide animation (#2328)
chrispader Sep 25, 2024
98d6ca6
fix(Android): minSdkVersion fallback to default 21 but RN 0.74 requir…
adrianryt Sep 25, 2024
75c15c1
feat: add basic React Server Component support (#2170)
EvanBacon Sep 25, 2024
408112a
feat: add monorepo support for Android builds (#2352)
kkafar Sep 25, 2024
82d4a04
chore(deps): aggregate updates from dependabot (#2354)
kkafar Sep 25, 2024
53695c3
fix!: always set Zindex to undefined for InnerScreen (#2351)
adrianryt Sep 26, 2024
bc95fa4
fix(iOS): right header incorrect position (#2316)
alduzy Sep 27, 2024
c981c06
feat: add compat mode for previously removed formSheet prop values (#…
kkafar Sep 30, 2024
261b7dd
feat: expose `none` & `largest` values for `sheetLargestUndimmedDeten…
kkafar Sep 30, 2024
8fc934f
Release 4.0.0-beta.1
kkafar Oct 1, 2024
108d85d
feat: add stub implementations for `ScreenContentWrapper` for web (#2…
kkafar Oct 1, 2024
5da303e
Release 4.0.0-beta.2
kkafar Oct 1, 2024
f9c491e
feat: add stub implementations for `ScreenFooter` for web (#2369)
kkafar Oct 1, 2024
0499738
Release 4.0.0-beta.3
kkafar Oct 1, 2024
606cd4b
feat(iOS): sheetInitialDetent support (#2367)
alduzy Oct 2, 2024
c711d3c
refactor!: remove deprecated ios stack animation (#2361)
maciekstosio Oct 2, 2024
64d2d64
chore: fix crash in example app due to typo in export (#2374)
kkafar Oct 2, 2024
b3f189d
fix: bring back headers when using "modal" presentation on Android (#…
kkafar Oct 3, 2024
bf83e4b
fix: prevent crash when there is no appearance model built (#2375)
kkafar Oct 3, 2024
9075f42
fix: align units of sheet corner radius in different callsites (#2378)
kkafar Oct 3, 2024
253ddad
feat: assert that detents array is sorted in dev mode (#2381)
kkafar Oct 3, 2024
d87062a
refactor!: add "index" suffix to selected sheet props & add better er…
kkafar Oct 3, 2024
486ce07
Release 4.0.0-beta.4
kkafar Oct 3, 2024
7719eb1
chore: remove unnecessary logs from native-stack v5 (#2382)
kkafar Oct 3, 2024
9ea0592
Release 4.0.0-beta.5
kkafar Oct 3, 2024
6502d52
chore: bump react-navigation to current main (#2386)
kkafar Oct 4, 2024
af30489
fix(iOS): full screen modal crash on paper (#2336)
maksg Oct 4, 2024
e864aaf
fix: check for surplus values in sheet detents array not only in dev …
kkafar Oct 4, 2024
c5d1d51
fix(Android): do not crash in case background can not be casted to Ma…
kkafar Oct 4, 2024
b099f29
Release 4.0.0-beta.6
kkafar Oct 4, 2024
91d89c4
fix(iOS): header subviews layout on tab change (#2385)
alduzy Oct 7, 2024
501f6cb
fix(Android)!: overflowing text in native header (#2325)
kkafar Oct 8, 2024
8d25f4c
Release 4.0.0-beta.7
kkafar Oct 8, 2024
b67af86
fix(Android): going back on fabric with nested list (#2383)
alduzy Oct 9, 2024
bcd7faf
fix: `HeaderConfig` impacts layout of `Screen`'s contents (#2395)
alduzy Oct 10, 2024
6154c2b
fix(Android): modal insets not applying (#2371)
alduzy Oct 10, 2024
cce7d78
feat: allow preload using activityState (#2389)
maciekstosio Oct 10, 2024
75d8078
Release 4.0.0-beta.9
kkafar Oct 10, 2024
dbf4cc8
fix(Android,Fabric): invalid behaviour of `fitToContents` sheet deten…
kkafar Oct 10, 2024
c1ca095
chore: bump examples to RN 0.75.4 (#2399)
alduzy Oct 11, 2024
a116e7d
fix(iOS,Fabric): prevent memory leak by calling `invalidate` on delet…
kkafar Oct 14, 2024
63af46b
Release 4.0.0-beta.10
kkafar Oct 14, 2024
d40e108
fix(Android): going back on fabric with horizontal list crash (#2403)
alduzy Oct 14, 2024
e4333a1
fix(iOS): header snapshots not working (#2393)
alduzy Oct 15, 2024
778c8ee
fix(iOS): `activityState` regression check false-positive (#2404)
kkafar Oct 15, 2024
b8eb9e9
Release 4.0.0-beta.11
kkafar Oct 15, 2024
384a99e
fix(iOS): do not force API user to set `activityState` (#2406)
kkafar Oct 15, 2024
3ca3486
Release 4.0.0-beta.12
kkafar Oct 15, 2024
71d862f
feat!: expose library `compatibilityFlags` with new flag regarding he…
kkafar Oct 16, 2024
d5197b6
fix: prevent Require cycles warning (#2410)
alduzy Oct 16, 2024
cb759f6
feat!: remove `shouldUseActivityState` flag (#2414)
kkafar Oct 17, 2024
fcb1693
fix(iOS): `extraLight` blur not working (#2338)
maksg Oct 18, 2024
ed07354
chore(deps): bump serve-static from 1.15.0 to 1.16.2 (#2366)
dependabot[bot] Oct 18, 2024
afef384
chore(deps): bump micromatch from 4.0.7 to 4.0.8 in /docs (#2355)
dependabot[bot] Oct 18, 2024
846cdb1
chore(deps): bump micromatch from 4.0.7 to 4.0.8 in /TVOSExample (#2418)
dependabot[bot] Oct 18, 2024
791cb10
chore(deps): bump serve-static from 1.15.0 to 1.16.2 in /FabricExampl…
dependabot[bot] Oct 18, 2024
b331ad8
chore: add support for 0.76-rc.6 (#2407)
maciekstosio Oct 21, 2024
273194f
refactor(Android): cleanup sheet behavior configuration (#2420)
kkafar Oct 21, 2024
ef7cf9a
Release 4.0.0-beta.13
kkafar Oct 21, 2024
5ff656e
fix(Android): crash on tab change with open form sheet (#2416)
kkafar Oct 21, 2024
d2f7c21
feat!: remove native components from public API (#2412)
maciekstosio Oct 21, 2024
cf31492
fix(iOS): FullWindowOverlay layout height (#2430)
alduzy Oct 22, 2024
2edda53
refactor!: drop support for native-stack v5 (#2373)
kkafar Oct 22, 2024
b1c9e40
feat: support specifying ref on Screen (#2400)
satya164 Oct 22, 2024
19866ef
refactor: separate Screen native props and public API (#2423)
maciekstosio Oct 22, 2024
df26107
Release 4.0.0-beta.14
kkafar Oct 22, 2024
b74e0eb
fix: header config missing ref (#2434)
alduzy Oct 23, 2024
5b9b8bd
docs: Manage system color scheme changes (#2440)
patrycjakalinska Oct 25, 2024
22310c8
refactor: Separate API props and NativeProps for ScreenStack (#2450)
maciekstosio Oct 25, 2024
108556f
chore: bump RN to stable 0.76 (#2446)
maciekstosio Oct 25, 2024
500ab02
fix(Android): center headerTitleAlign below Android API 29 (#2439)
alduzy Oct 28, 2024
d33687e
fix(Android): title invisible with searchbar enabled (#2456)
alduzy Oct 28, 2024
437f6ea
feat: add a ScreenStackItem component (#2433)
satya164 Oct 28, 2024
88d9794
fix(Paper,iOS): dismiss all attached view controllers correctly on re…
hirbod Oct 28, 2024
3aa1b52
Release 4.0.0-beta.16
kkafar Oct 28, 2024
699c13e
fix(Android): screen goes blank when going back on fabric (#2465)
alduzy Oct 30, 2024
730899e
chore(deps): aggregate updates from dependabot (#2469)
kkafar Oct 30, 2024
e7d96a5
refactor: use side-effect import declaration to ensure TurboModule ge…
kkafar Oct 30, 2024
0526429
fix(iOS): RCTAssert.h file not found for case sensitive file system (…
Romick2005 Oct 30, 2024
dd8795f
fix: update getShadowNodeWrapperAndTagFromRef (#2437)
maciekstosio Oct 30, 2024
414b5ed
refactor: replace unstable_screenStyle with backgroundColor from cont…
maciekstosio Oct 31, 2024
81f6029
chore: Remove legacy version check in `react-native.config.js` (#2432)
lukmccall Nov 4, 2024
eedbb0f
refactor: move ScreenGestureDetector to ScreenStack (#2449)
maciekstosio Nov 4, 2024
5a2e4eb
refactor!: use context instead of screenRefs (#2476)
maciekstosio Nov 5, 2024
3ddf47c
Release 4.0.0-beta.17
kkafar Nov 5, 2024
dffcc5f
chore: compatibility table README update (#2479)
alduzy Nov 5, 2024
46c843e
feat(iOS)!: change default of `fullScreenSwipeShadowEnabled` to true …
kkafar Nov 6, 2024
960873a
chore(README): Redact caution of migrating JS API of native stack (#2…
tboba Nov 6, 2024
375b7ee
feat(iOS)!: change default animation curve & duration (#2477)
kkafar Nov 6, 2024
b38c590
Release 4.0.0
kkafar Nov 6, 2024
fa51b58
chore: bump react-navigation to current main (#2493)
kkafar Nov 12, 2024
b84fd63
fix: Remove dangling global reference to `ScreenModule` (#2494)
lukmccall Nov 12, 2024
68e3d73
fix(iOS,Paper): fix broken modal go-back animation (#2496)
kkafar Nov 13, 2024
6a95fe7
docs: Add hero support for 4k monitors (#2460)
patrycjakalinska Nov 13, 2024
4614702
fix(iOS): fix build issues when building with `-Werror -Wreturn-path`…
kkafar Nov 13, 2024
615922a
chore(deps): bump rexml from 3.3.6 to 3.3.9 in /Example (#2471)
dependabot[bot] Nov 13, 2024
c0caddb
chore: rebuild TVOSExample with RN 0.76 (#2486)
alduzy Nov 13, 2024
a1dbae1
fix(iOS): add missing largeTitleBackgroundColor prop (#2500)
EvanBacon Nov 14, 2024
f489762
refactor(iOS): cleanup conversion code (#2499)
kkafar Nov 14, 2024
555f3de
Release 4.1.0
kkafar Nov 14, 2024
ca4b482
chore(examples): update lock files after release (#2502)
kkafar Nov 14, 2024
187cbd4
chore(CI): fix iOS e2e tests (#2503)
kkafar Nov 14, 2024
4d3fe3f
fix: get imageLoader from contextContainer (#2487)
WoLewicki Nov 14, 2024
7549b19
fix: remove unnecessary checks for creating snapshot (#2485)
WoLewicki Nov 14, 2024
1351473
fix: make unstable_sheetFooter usable with react-navigation v7 (#2504)
kkafar Nov 14, 2024
4d9eb76
fix(Android): prevent sheet footer from flickering on sheet sliding (…
kkafar Nov 14, 2024
976dd89
chore: retore apps/App.tsx (#2506)
kkafar Nov 14, 2024
40f318a
feat: add support for transparent large header on iOS (#2501)
EvanBacon Nov 14, 2024
0ec5c56
fix(Android): going back on fabric with removeClippedSubviews (#2495)
alduzy Nov 15, 2024
5cb6520
fix(Android): fix formSheet-keyboard interaction (#2511)
kkafar Nov 18, 2024
f7dc51e
Release 4.2.0
kkafar Nov 19, 2024
5fa039e
chore: update lockfiles after release (#2517)
kkafar Nov 19, 2024
1362858
chore: make formsheet work in Example app (#2528)
kkafar Nov 20, 2024
b58f13a
fix(Android): prevent crash with InsetsObserverProxy already register…
kkafar Nov 21, 2024
6aaf56b
fix(Android): prevent crash when we can not insert any subviews into …
kkafar Nov 21, 2024
e9f5df0
Release 4.3.0
kkafar Nov 21, 2024
b523ccf
fix(web): reexport missing component (#2535)
kkafar Nov 22, 2024
1142399
fix(Android): improve RN detection in build scripts (#2537)
kkafar Nov 22, 2024
8c43de6
fix(iOS, Paper): fix header layout when updating non focued screen (#…
kkafar Dec 6, 2024
20808ee
refactor(iOS, Paper): do not add subviews to header config in HostTre…
kkafar Dec 6, 2024
d9dfe1a
chore: update dev deps & fix eslint (#2561)
kkafar Dec 9, 2024
afd5e72
refactor(iOS): simplify UINavigationControllerDelegate methods implem…
kkafar Dec 10, 2024
5571050
fix(iOS): restore old header animation to prevent content jump (#2563)
kkafar Dec 10, 2024
a77252a
Release 4.4.0-rc.0
kkafar Dec 10, 2024
8b9b9f2
chore: fix misleading contributing guide (#2564)
kkafar Dec 10, 2024
2152383
fix(iOS, Paper): prevent double modal dismissal (#2568)
kkafar Dec 11, 2024
6e37c7e
fix: take preload into account when freezing children (#2566)
WoLewicki Dec 12, 2024
178d94d
fix(iOS): restore behaviour of RNSScreenStackAnimationNone (#2565)
kkafar Dec 16, 2024
7cee79c
feat: add codegen `ios.componentProvider` to package.json (#2567)
jakex7 Dec 16, 2024
745d987
Release 4.4.0-rc.1
kkafar Dec 17, 2024
20b7e83
fix: point to existing symbol names in `ios.componentProvider` (#2583)
kkafar Dec 18, 2024
d6431ed
Release 4.4.0
kkafar Dec 20, 2024
bc24731
fix(Android): patch potential issues with Android build since RN lib-…
kkafar Jan 7, 2025
fbc9a00
fix(Android): fix warning by removing package declaration from Androi…
kkafar Jan 8, 2025
e6b9aa0
chore(Android): remove unnecesary check in Android build code (#2608)
kkafar Jan 8, 2025
b4fe2c1
feat: add support for `[email protected]` (#2581)
kkafar Jan 10, 2025
7a8e55d
chore(readme): update supported react-native versions (#2613)
kkafar Jan 10, 2025
9861b48
Release 4.5.0
kkafar Jan 10, 2025
1216820
check isAdded before adding fragment
yayvery Feb 12, 2024
d8fe622
point package.jsons to src
yayvery Feb 14, 2024
e36605f
export AnimatedScreenTransition and GoBackGesture types
yayvery Feb 14, 2024
75c313a
fix type imports
yayvery Feb 14, 2024
2b0e859
TS Fix
Flewp Sep 23, 2024
489074e
remove unused import
hannojg Jan 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 1 addition & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
module.exports = {
extends: [
'@react-native',
'standard',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:react/recommended',
'prettier',
],

plugins: ['react-native', 'react-hooks'],

env: {
'react-native/react-native': true,
},
Expand Down Expand Up @@ -43,10 +39,6 @@ module.exports = {
},

overrides: [
{
files: ['*.{js,jsx}'],
parser: 'babel-eslint',
},
{
files: ['*.{ts,tsx}'],
parser: '@typescript-eslint/parser',
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Screens landing page
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
push:
branches:
- main
paths: docs/**
workflow_dispatch:

jobs:
publish:
if: github.repository == 'software-mansion/react-native-screens'
runs-on: ubuntu-latest
concurrency:
group: docs-check-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Check out
uses: actions/checkout@v4

- name: Generate landing page content
run: >-
git config --local user.email "[email protected]"
&& git config --local user.name "GitHub Action"
&& cd docs
&& yarn
&& yarn build

- name: Publish generated content to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
FOLDER: docs/build
BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/ios-build-test-fabric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
id: install_pods
continue-on-error: true
working-directory: ${{ env.WORKING_DIRECTORY }}/ios
run: RCT_NEW_ARCH_ENABLED=1 pod install
run: pod install

- if: steps.install_pods.outcome == 'failure'
id: remove_pods
Expand All @@ -66,7 +66,7 @@ jobs:
id: reinstall_pods
name: Reinstall pods
working-directory: ${{ env.WORKING_DIRECTORY }}/ios
run: RCT_NEW_ARCH_ENABLED=1 pod install
run: pod install

- name: Build app
working-directory: ${{ env.WORKING_DIRECTORY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tv-os-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
run: pod install
- name: Build app
working-directory: ${{ env.WORKING_DIRECTORY }}
run: npx react-native run-ios --scheme="TVOSExample-tvOS" --simulator="Apple TV"
run: npx react-native run-ios --simulator="Apple TV"
2 changes: 1 addition & 1 deletion Example/.detoxrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = {
simulator: {
type: 'ios.simulator',
device: {
type: 'iPhone 14',
type: 'iPhone 15 Pro',
},
},
attached: {
Expand Down
1 change: 1 addition & 0 deletions Example/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ ruby ">= 2.6.10"
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
gem 'xcodeproj', '< 1.26.0'
8 changes: 3 additions & 5 deletions Example/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,19 @@ GEM
netrc (0.11.0)
nkf (0.2.0)
public_suffix (4.0.7)
rexml (3.2.9)
strscan
rexml (3.3.9)
ruby-macho (2.5.1)
strscan (3.1.0)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
xcodeproj (1.24.0)
xcodeproj (1.25.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.3.0)
rexml (~> 3.2.4)
rexml (>= 3.3.2, < 4.0)

PLATFORMS
ruby
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.facebook.react.defaults.DefaultReactNativeHost
import com.facebook.react.soloader.OpenSourceMergedSoMapping
import com.facebook.soloader.SoLoader

class MainApplication : Application(), ReactApplication {
Expand All @@ -34,7 +35,7 @@ class MainApplication : Application(), ReactApplication {

override fun onCreate() {
super.onCreate()
SoLoader.init(this, false)
SoLoader.init(this, OpenSourceMergedSoMapping)
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
// If you opted-in for the New Architecture, we load the native entry point for this app.
load()
Expand Down
10 changes: 5 additions & 5 deletions Example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 23
compileSdkVersion = 34
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.24"
ndkVersion = "27.1.12297006"
kotlinVersion = "2.0.21"
}
repositories {
google()
Expand Down
Binary file modified Example/android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion Example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
5 changes: 4 additions & 1 deletion Example/android/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
Expand Down Expand Up @@ -84,7 +86,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
2 changes: 2 additions & 0 deletions Example/android/gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
Expand Down
3 changes: 2 additions & 1 deletion Example/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
plugins { id("com.facebook.react.settings") }
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
extensions.configure(com.facebook.react.ReactSettingsExtension) { ex -> ex.autolinkLibrariesFromCommand() }
rootProject.name = 'ScreensExample'
include ':app'
includeBuild('../node_modules/@react-native/gradle-plugin')

30 changes: 30 additions & 0 deletions Example/ios/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider

@main
class AppDelegate: RCTAppDelegate {
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
self.moduleName = "ScreensExample"
self.dependencyProvider = RCTAppDependencyProvider()

// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = [:]

return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}

override func sourceURL(for bridge: RCTBridge) -> URL? {
self.bundleURL()
}

override func bundleURL() -> URL? {
#if DEBUG
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
}
8 changes: 3 additions & 5 deletions Example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ require Pod::Executable.execute_command('node', ['-p',
platform :ios, min_ios_version_supported
prepare_react_native_project!

# From 0.76 new arch is enabled by default, in Example app we want to have old arch
ENV['RCT_NEW_ARCH_ENABLED'] = '0'

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
Expand All @@ -23,11 +26,6 @@ target 'ScreensExample' do
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

target 'ScreensExampleTests' do
inherit! :complete
# Pods for testing
end

post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
Expand Down
Loading
Loading