Commit Graph

246 Commits

Author SHA1 Message Date
Satyajit Sahoo
7d647a7a7b fix: workaround SafereaProvider causing jumping 2019-11-12 21:35:38 +01:00
Satyajit Sahoo
7aab6568eb refactor: use same type for animation context and interpolation props 2019-11-07 08:06:42 +01:00
Christian Falch
c63259df37 feat: expose animation related properties in context (#278) 2019-11-06 12:10:15 +01:00
Michał Osadnik
59dd0451ff fix: gesture vertical inverted (#281) 2019-11-05 13:37:18 +01:00
osdnk
55615ffee3 fix: make clearKeyboardTimeout private 2019-10-25 09:26:50 +02:00
Wojciech Stanisz
46f05744b3 fix: add clearTimeout to keyboard manager (#275) 2019-10-24 18:44:00 +02:00
Samuel Chamberland
82c732a638 feat: expose stack transition values via context (#265) 2019-10-24 07:34:15 -04:00
Wojciech Stanisz
20351e760b fix: handle keyboard return for short interactions (#272)
When user has super short swiping interaction it's an issue that keyboard won't reappear on screen.
That's because there is short time when system will make sure to hide keyboard no matter what. Too fast text input refocus will result only in keyboard flashing on screen and hiding right away.

For such short interactions I created a delay that will ensure that the keyboard will reappear on the screen every time and make sure it's executed only when needed.
It only affect super short interactions <100ms to make sure they work correctly, and doesn't affect any logic beyond that.

As far as my research go it seems that the react-navigation isn't responsible for hiding the Keyboard in that specific case, so I don't think we can simply prevent this action when we don't want it. Doing the check in KeyboardMenager and delaying it is the safest way IMO - we make sure that it won't affect any other logic than concerning keyboard itself. (It would happen if we prevent the action somewhere else like in StackItem)

Tested on physical iOS device, iOS simulator, and Android device with both app using the library and library's example app.
2019-10-23 18:23:46 +02:00
osdnk
cf9265916d fix: remove useless comment 2019-10-22 20:58:55 +02:00
osdnk
36e23192b2 fix: conditions in gesture direction 2019-10-22 20:54:58 +02:00
osdnk
3e9a7e431d fix: wrong argument in onTransitionStart in stack 2019-10-22 17:58:40 +02:00
Michał Osadnik
ef0bfe0f25 fix: send events even is stack animation is vain (#270) 2019-10-22 16:46:36 +02:00
satyajit.happy
16863e88c3 fix: don't fire onOpen when screen is unmounting
I can't think of a scenario a screen would unmount when opening.
So it's probably a safe-bet to always call onClose.

Fixes #136
2019-10-22 05:11:24 +02:00
satyajit.happy
e746f439d0 fix: don't keep unfocused header backgrounds visible 2019-10-22 05:07:16 +02:00
Maskedman99
7298185d01 fix: remove boxShadow for web (#267) 2019-10-21 19:18:26 +05:30
satyajit.happy
17f6eefef6 feat: add an option to override safe area insets 2019-10-18 17:10:16 +02:00
satyajit.happy
cacd9c7647 fix: don't fade incoming background when fading header 2019-10-16 15:29:22 +02:00
satyajit.happy
487d869891 fix: properly handle header title 2019-10-16 15:23:24 +02:00
satyajit.happy
b4b5f33757 fix: use header height from style if specified 2019-10-16 15:12:59 +02:00
satyajit.happy
649cab5658 fix: don't ignore descriptors change 2019-10-15 16:22:57 +02:00
satyajit.happy
b982bffd3d fix: increase hitSlop of back button on Android 2019-10-11 14:05:18 +02:00
satyajit.happy
afdc69a8dc feat: add headerTitleAlign option to center and left align title 2019-10-11 14:04:17 +02:00
Rob Goldiez
3563b3ed94 fix: fix headerTitle deprecation warning (#257) 2019-10-10 09:05:31 -05:00
satyajit.happy
9625a305d8 refactor: handle insets when calculating height 2019-10-09 14:47:03 +02:00
satyajit.happy
1335059de4 fix: fix calculating default header height 2019-10-08 16:29:25 +02:00
Satyajit Sahoo
f8af12a84b fix: make modal presentation mode fullscreen on landscape (#256) 2019-10-08 16:00:20 +02:00
Michał Osadnik
81259ec7bc fix: better interpolation for iOS modal (#255) 2019-10-08 12:54:57 +02:00
satyajit.happy
b540c4d78f chore: add transparent example to per screen transitions 2019-10-07 17:40:14 +02:00
satyajit.happy
95476a4afa feat: add deprecation wanrnings 2019-10-06 16:38:29 +02:00
satyajit.happy
db050915f1 refactor: fix typo 2019-10-06 15:49:37 +02:00
satyajit.happy
8f83f58913 feat: add a more explicit headerShown option 2019-10-06 15:37:08 +02:00
satyajit.happy
ca6cc3048d test: fix snapshots 2019-10-06 05:32:45 +02:00
Brent Vatne
4d0a1a5178 feat: switch to react-native-safe-area-context 2019-08-29 16:38:43 -07:00
satyajit.happy
118cac2a1d fix: support both function and react element to ease the migration 2019-09-26 04:48:03 +02:00
satyajit.happy
796df86b68 fix: fix header buttons not clickable on Android with headerTransparent 2019-10-06 04:34:42 +02:00
satyajit.happy
1eae99dca0 fix: use next screen's animation when not focused 2019-10-06 04:30:34 +02:00
satyajit.happy
4a11b8b127 fix: don't recompute if routes didn't change 2019-10-05 22:57:24 +02:00
Michał Osadnik
ebef2c3ba1 feat: swipe velocity impact as prop (#249) 2019-10-05 20:46:10 +02:00
satyajit.happy
dabd941128 fix: keep the routes we are closing or replacing 2019-10-05 16:07:39 +02:00
osdnk
48f33a120e fix: use gestureUntraversed and velocityUntraversed in nativeEvent 2019-10-05 14:47:35 +02:00
osdnk
8c59bf7d2c fix: evaluate position with untraversed gesture 2019-10-04 14:22:36 +02:00
osdnk
53a0dca279 fix: handle race conditions while ending transition 2019-09-25 16:38:20 +02:00
osdnk
e6566b68d7 fix: handleCloseRoute with proper key 2019-09-25 16:00:07 +02:00
osdnk
0c06b5daa5 fix: deliver toChildKey with StackAction 2019-09-24 19:10:11 +02:00
satyajit.happy
a3c769811b fix: fix header rendered behind card 2019-09-23 21:51:35 +02:00
osdnk
62782d54c2 fix: vertical gesture 2019-09-23 18:19:56 +02:00
satyajit.happy
63e2ad56df chore: migrate example to TS 2019-09-22 02:17:55 +02:00
Janic Duplessis
d28d216b9a feat: integrate 'InterationManager' in stack 2019-09-22 01:41:42 +02:00
Michal Osadnik
36e2081df4 fix: change order of attaching nodes in card exec 2019-09-22 01:32:45 +02:00
Michal Osadnik
d27b30bbdc feat: useForeground if possible in stack header backButton 2019-09-22 01:28:38 +02:00