-
-
Couldn't load subscription status.
- Fork 592
feat(iOS): Handle interactiveContentPopGesture for iOS 26 #3173
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
Merged
kmichalikk
merged 16 commits into
main
from
@kmichalikk/disable-screen-interaction-on-transition
Sep 23, 2025
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
36ccaf6
Reenable interactiveContentPopGesture for iOS 26, block interactions …
kmichalikk 321c915
Update tests to match PR
kmichalikk 320ef8b
Use interactiveContentPopGesture for everything besides custom animat…
kmichalikk 3f315f5
Fix gestureRecognizerShouldBegin, add notes to docs
kmichalikk 66240ab
add compile guard to interactiveContentPopGestureRecognizer
kmichalikk b4d199c
Remove dead code & fix comments
kmichalikk a9c68f5
Adjust the behavior of fullScreenSwipeShadowEnabled
kmichalikk 852ed1f
Remove logs, update defines
kmichalikk 142d2ac
reset native-stack/types
kmichalikk 3598d41
Disable interactions on the whole window instead of top react view to…
kmichalikk 64e0592
Reword doc for fullScreenSwipeShadowEnabled
kmichalikk 8dd181f
Handle disabling interaction in modals
kmichalikk 5f06448
Merge branch 'main' into @kmichalikk/disable-screen-interaction-on-tr…
kkafar 35f5595
Rename isCustomAnimation
kmichalikk 053b1f2
Remove accidentaly commited backgroundColor
kmichalikk 84303f8
Add comment about gestureResponseDistance
kmichalikk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| import * as React from 'react'; | ||
| import { View, Text, Button } from 'react-native'; | ||
| import { Screen, ScreenStack, ScreenStackHeaderConfig } from '../../../src'; | ||
| import { useState } from 'react'; | ||
| import Colors from '../shared/styling/Colors'; | ||
|
|
||
| function HomeScreen({ add }: { add: () => void }) { | ||
| console.log('Render home'); | ||
| return ( | ||
| <View | ||
| style={{ | ||
| flex: 1, | ||
| gap: 8, | ||
| alignItems: 'center', | ||
| justifyContent: 'center', | ||
| backgroundColor: Colors.RedLight40, | ||
| }}> | ||
| <Text>Home!</Text> | ||
| <Button | ||
| title="Next" | ||
| onPress={add} | ||
| /> | ||
| </View> | ||
| ); | ||
| } | ||
|
|
||
| function ProfileScreen({ add, idx }: { add: () => void, idx: number }) { | ||
| const colors = [Colors.BlueLight40, Colors.GreenLight40, Colors.YellowLight40]; | ||
| const [colorIndex, setColorIndex] = useState(0); | ||
| console.log('Render another'); | ||
| return ( | ||
| <View | ||
| style={{ | ||
| flex: 1, | ||
| gap: 8, | ||
| alignItems: 'center', | ||
| justifyContent: 'center', | ||
| backgroundColor: colors[colorIndex] | ||
| }}> | ||
| <Text>Another! #{idx}</Text> | ||
| <Button | ||
| title="More" | ||
| onPress={add} | ||
| /> | ||
| <Button | ||
| title="Recolor" | ||
| onPress={() => setColorIndex(i => (i+1) % 3)} | ||
| /> | ||
| </View> | ||
| ); | ||
| } | ||
|
|
||
| const App = () => { | ||
| const [count, setCount] = React.useState(0); | ||
|
|
||
| return ( | ||
| <ScreenStack style={{ flex: 1 }}> | ||
| <Screen key='home' activityState={2} isNativeStack onAppear={() => {setCount(0)}}> | ||
| <ScreenStackHeaderConfig title='Home'/> | ||
| <HomeScreen add={() => setCount(n => n+1)}/> | ||
| </Screen> | ||
| { Array.from({length: count}).map((_, i) => ( | ||
| <Screen key={`prof${i}`} activityState={2} isNativeStack> | ||
| <ScreenStackHeaderConfig title={'Another #' + (i+1)}/> | ||
| <ProfileScreen add={() => setCount(n => n+1)} idx={i+1}/> | ||
| </Screen> | ||
| )) } | ||
| </ScreenStack> | ||
| ); | ||
| }; | ||
| export default App; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.