Commit Graph

381 Commits

Author SHA1 Message Date
Satyajit Sahoo
5e00ef28a6 chore: release 2.0.0-alpha.41 2019-12-16 16:26:59 +01:00
Satyajit Sahoo
c3133cdb5f refactor: remove cardTransparent in favor of cardStyle 2019-12-16 16:25:22 +01:00
Satyajit Sahoo
ea88193923 chore: release 2.0.0-alpha.40 2019-12-14 23:21:37 +01:00
Satyajit Sahoo
8b11e4df0c chore: reuse the stack code from react navigation 5
The code for the stack is almost the same as v5, with the only differences being the types and the navigation object. To avoid making same changes in 2 places which error-prone, I decided to reuse the same code. Due to the differences, it's not possible to just use it as a dependency, so I followed this approach:
- Copy the source files on post install and apply patches to make it work with React Navigation 4
- When we need to make changes, we can make them in v5 repo and update the version here, most of the time it wouldn't need any extra work
- If we need to make v4 specific changes, we can change the code in vendor/ and then re-generate the patch with `yarn patch`
2019-12-10 15:22:12 +01:00
Rapsssito
5a38b0f05b fix: add ^2.0.0-alpha to react-native-screens peer dependency (#284) 2019-12-14 23:11:54 +01:00
osdnk
a840312a8b chore: release 2.0.0-alpha.39 2019-12-09 20:45:11 +01:00
osdnk
a5b389837d fix: reset velocity if no modal animation 2019-12-09 20:42:42 +01:00
Satyajit Sahoo
9cd6791ac2 chore: release 2.0.0-alpha.38 2019-12-03 17:07:21 +01:00
Radek Czemerys
2dcbba95cd fix: children touch events leaking to underlying Header right/left components (#302) 2019-12-03 17:03:12 +01:00
Satyajit Sahoo
7344efad0f chore: release 2.0.0-alpha.37 2019-11-13 23:28:14 +01:00
Satyajit Sahoo
7d647a7a7b fix: workaround SafereaProvider causing jumping 2019-11-12 21:35:38 +01:00
Satyajit Sahoo
1e13e7e843 chore: release 2.0.0-alpha.36 2019-11-07 08:07:31 +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
osdnk
62f26ef3f1 chore: release 2.0.0-alpha.35 2019-11-05 13:41:20 +01:00
Michał Osadnik
59dd0451ff fix: gesture vertical inverted (#281) 2019-11-05 13:37:18 +01:00
osdnk
ca24b90e31 chore: release 2.0.0-alpha.34 2019-10-25 15:20:06 +02: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
65a4e964b2 chore: release 2.0.0-alpha.33 2019-10-22 20:59:28 +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
5342500b96 chore: release 2.0.0-alpha.32 2019-10-22 17:59:23 +02:00
osdnk
3e9a7e431d fix: wrong argument in onTransitionStart in stack 2019-10-22 17:58:40 +02:00
osdnk
84cc45205d chore: release 2.0.0-alpha.31 2019-10-22 16:47:39 +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
f5449b2dee chore: release 2.0.0-alpha.30 2019-10-22 05:12:08 +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
Daniel Ruf
783a392f75 ci: use lockfile checksum for cache key computation (#269) 2019-10-21 15:48:43 +02:00
Maskedman99
7298185d01 fix: remove boxShadow for web (#267) 2019-10-21 19:18:26 +05:30
satyajit.happy
12cd3e7673 chore: release 2.0.0-alpha.29 2019-10-18 17:16:59 +02:00
satyajit.happy
17f6eefef6 feat: add an option to override safe area insets 2019-10-18 17:10:16 +02:00
satyajit.happy
4eef59c08a chore: release 2.0.0-alpha.28 2019-10-16 15:30:38 +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
06169d179d chore: release 2.0.0-alpha.27 2019-10-15 16:23:53 +02:00
satyajit.happy
649cab5658 fix: don't ignore descriptors change 2019-10-15 16:22:57 +02:00
satyajit.happy
252ba83c2b chore: release 2.0.0-alpha.26 2019-10-11 14:08:10 +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
4449053fe7 chore: release 2.0.0-alpha.25 2019-10-08 16:30:33 +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