Commit Graph

16 Commits

Author SHA1 Message Date
Krzysztof Magiera
80a466970e Navigation stack native primitives (#139)
Adds support for stack navigation primitives (UINavigationViewController and Android fragment container with back button support)
2019-09-05 13:55:14 +02:00
Alain Hufkens
8bfc363cf7 Add tvOS target (#65)
I added a RNScreens-tvOS Target. It doesn't have anything that doesn't work on tvOS.
it's working in our project now.
2019-02-12 13:09:22 +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
4dd751811a Ignore pointerEvent set via react props (#49)
This is a follow up to #48 which makes Screen component ignore setting of pointerEvents. As it turns out react-navigation tries to set this setting and in addition to handling it manually we also need to prevent it to be set via React prop.
2018-12-20 08:46:34 +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
8e13c58b6e Get rid of stackcontainer (for now) 2018-09-07 18:04:08 +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
41c4f3eded Extra fixes for properly notifying interactor on iOS ScreenStack 2018-08-03 19:48:15 +02:00
Krzysztof Magiera
3c9ea4ee07 Properly cancel transitioning on ScreenStack on iOS 2018-08-03 16:20:01 +02:00
Krzysztof Magiera
31281d6b68 Initial commit. 2018-08-03 13:54:11 +02:00