Comments (6)
It appears that the way this is normally handled on iOS is by using willMoveToWindow
and/or didMoveToWindow
When using UINavController
, willMoveToWindow
triggers with nil
window when the animation starts. What happens under the hood is that UINavController
then immediately remounts the view and only unmounts it when the animation is over.
I went ahead and attempted to implement that behavior in ScreenContainer
(apparently we can't use UINavController
directly for reasons). If you have some time please try it from my branch here: https://github.com/kmagiera/react-native-screens/tree/move_window_events
The patch is here -> master...move_window_events
from react-native-screens.
I made a minimal working example here: https://github.com/tychota/BugInputAcessoryView
- My bug: https://github.com/tychota/BugInputAcessoryView/tree/master
- The fix of the biggest bug, thanks to RN : tychota/BugInputAcessoryView#2
- The try to fix the bug with the patch of @kmagiera : tychota/BugInputAcessoryView#1 (sadly not working)
from react-native-screens.
I went ahead and attempted to implement that behavior in ScreenContainer (apparently we can't use UINavController directly for reasons). If you have some time please try it from my branch here: https://github.com/kmagiera/react-native-screens/tree/move_window_events
Can you detail a bit the reason ? Too much teasing for my curiosity :)
from react-native-screens.
Closing this as of #47 – the updated version will be published soon. Please try it out and reopen if the problem persist
from react-native-screens.
I will definitivly try. Thank you sir.
from react-native-screens.
Was a fix for this released? I'm having a bit of trouble following the convo here (I don't know anything about native dev). We're experiencing the exact same problem with the InputAccessoryView rendering a second or so after the screen transition ends. It works ok in regular react-navigation v5, so that's a fallback for now, but it would be great if we could use react-native-screens instead!
from react-native-screens.
Related Issues (20)
- Elements with `position: absolute` disappear during screen transition
- [Android] Task :react-native-screens:compileReleaseKotlin FAILED HOT 5
- React-RCTFabric compile issue HOT 1
- iOS react-navigation not fullScreen HOT 2
- [3.30.0] Installation fails after new release. `/bin/sh: 1: cd: can't cd to react-navigation` HOT 19
- Error upon running npm install on 3.30.0 HOT 4
- Issue on installation of latest version HOT 2
- Android Build Error - Execution failed for task ':react-native-screens:configureCMakeRelWithDebInfo' HOT 19
- iOS Status Bar Error HOT 6
- Not able to navigate to a nested modal navigator HOT 4
- Android ComposeView, Composable is gone upon returning to Screen from stack HOT 2
- Types on FullWindowOverlay does not allow to set style props (even if used in examples
- [android] stack screen transition lag on 3.30.1 HOT 12
- Seems like "goBackGesture" not working! HOT 3
- [3.31.0] CI builds fails, command not found: bob HOT 15
- Strange flicker when you scroll up a modal with NativeStack in iOS HOT 3
- issue related to react-native-screen HOT 4
- TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[11], "react-native-screens").ScreenStack') HOT 28
- iOS build fails with Undefined symbols: facebook::jsi::HostObject::~HostObject() HOT 5
- [iOS] back gesture activates `Pressable` element HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-screens.