11 Commits

Author SHA1 Message Date
Krzysztof Magiera
5d5e8bfca6 Fix screen container after rnsscreen layout change. (#215)
For native stack we introduced a new way of layouting screen controllers. We no longer rely on flexbox to layout them so that we can use native stack to provide a correct dimensions and safe area paddings. Unfortunately this change broke the old screen container. With this commit we are adapting layout change to old screen container that will now layout its direct children on the native side by making them take up the whole space of the container.
2019-11-06 21:54:05 +01:00
Krzysztof Magiera
742df91d39 Restore view interaction when container changes from 0 active to 1 active (#56)
Previously we weren't triggering transaction finish when going from none active screens to 1 active screen. This turns out to be the case in tab navigator where for a sub-frame moment the active state changes for the current screen to `NO` and then new screen isn't active yet.

Fixes #53
2019-01-07 11:11:21 +01:00
Krzysztof Magiera
5893d9a8a7 Restore first responder of view controller when screen reactivates (#48)
This change automates first responder restoring when screen is deactivated and the activated back (e.g. when we push new screen on top and then go back). In addition we disable pointerEvent setting for the Screen component as changes made to that prop would cause underlying views to resign responder before we can remember it. Because of that we add an automatic handling for pointer events for the Screen component that disables all touch interactions when screen is transitioning.
2018-12-20 08:44:01 +01:00
Krzysztof Magiera
5dadab9aa6 Trigger moveToWindow:nil call when screen animation starts to mimick UINavController behavior (#47)
With this change in the screens that are being transitioned get detach+attach events similarily to how it is done in UINavigationController. This allows views underneath to get notified that the transition is started and react to it when necessary (e.g. hide keyboard)
2018-12-20 08:39:11 +01:00
Krzysztof Magiera
f57223659c Fix issue with alert/modal dismiss when pushing new screens 2018-11-05 10:37:16 +01:00
Janic Duplessis
5e41470b4f Fix typo in updateContainer method definition (#23) 2018-10-02 16:00:13 +02:00
Krzysztof Magiera
38e163eb76 Use RCTExecuteOnMainQueue to make sure updates are executed immediately in batch
This fixes problem with black screen when navigating back in react nativation.
2018-09-14 12:29:07 +02:00
Krzysztof Magiera
eae8830b65 Use uiManagerDidPerformMounting to perform batch updates of ScreenConatiner on iOS (we should perhaps do sth similar in ScreenStack too). 2018-08-21 15:51:20 +02:00
Krzysztof Magiera
85f877f462 Support reachability for StackContainer on iOS 2018-08-17 14:00:06 +02:00
Krzysztof Magiera
b220432322 Fixes for iOS screen container to update at most once per frame 2018-08-13 19:34:36 +02:00
Krzysztof Magiera
31281d6b68 Initial commit. 2018-08-03 13:54:11 +02:00