Commit Graph

284 Commits

Author SHA1 Message Date
Satyajit Sahoo
ce9991ffff chore: sync latest stack 2020-09-24 13:13:12 +02:00
Satyajit Sahoo
3bb21e256f chore: upgrade depenendecies 2020-09-24 01:06:00 +02:00
Satyajit Sahoo
fcd7d83c4c chore: sync latest stack 2020-07-11 00:05:15 +02:00
Satyajit Sahoo
46b797dd29 fix: sync latest stack 2020-06-25 11:50:39 +02:00
Satyajit Sahoo
2e7f4a6d10 fix: pop with correct key from nested stack 2020-06-25 03:01:47 +02:00
Satyajit Sahoo
454e05b02e feat: sync latest stack and upgrade typescript 2020-06-25 02:15:28 +02:00
Satyajit Sahoo
ba6d7dcbed feat: sync latest stack 2020-06-08 11:31:03 +02:00
Satyajit Sahoo
03f9f8cd8e feat: sync latest stack 2020-06-06 02:28:20 +02:00
Satyajit Sahoo
bc1313b61d fix: sync latest stack 2020-05-15 22:00:38 +02:00
Satyajit Sahoo
bb82d5000f feat: sync latest stack 2020-05-11 18:34:46 +02:00
Satyajit Sahoo
1f30227049 chore: update eslint and prettier 2020-05-11 18:17:15 +02:00
Satyajit Sahoo
8b79e9bee6 feat: sync latest stack 2020-05-01 01:45:10 +02:00
Satyajit Sahoo
90eff6a5e2 chore: sync latest stack 2020-04-22 16:45:32 +02:00
Satyajit Sahoo
05b47dbb09 chore: sync latest stack 2020-04-18 01:48:06 +02:00
Satyajit Sahoo
1d527ce16a chore: sync latest stack 2020-03-31 18:07:52 +02:00
Satyajit Sahoo
14a6538cc8 fix: emit didFocus and didBlur events based on parent's transition 2020-03-28 16:04:06 +01:00
Satyajit Sahoo
cd08338186 fix: rework focus and blur events to make them more reliable
closes #4867, #6187, #6451, #7628, #7749
2020-03-27 21:28:30 +01:00
osdnk
8dbe0299a8 chore: sync latest stack 2020-03-27 10:24:28 +01:00
Satyajit Sahoo
4bac3bfc1a chore: sync latest stack 2020-03-23 11:44:28 +01:00
Satyajit Sahoo
597aa51fad chore: sync latest stack 2020-03-23 00:08:30 +01:00
Satyajit Sahoo
a929933bde chore: update prettier 2020-03-23 00:02:47 +01:00
Satyajit Sahoo
72bbebc80e chore: sync latest stack 2020-03-20 11:40:21 +01:00
Satyajit Sahoo
8152ae1212 chore: sync latest stack 2020-03-19 20:11:34 +01:00
Satyajit Sahoo
5927f4287f feat: add prune option to pop action to match v5 behaviour 2020-03-16 16:37:20 +01:00
Satyajit Sahoo
8d0b61f1b7 chore: sync latest stack 2020-03-16 14:55:51 +01:00
Satyajit Sahoo
f5a3880969 fix: dispatch completeTransition on mount so focus event is emitted 2020-03-04 13:36:34 +01:00
Satyajit Sahoo
72e8160537 chore: migrate to monorepo 2020-02-24 17:27:10 +01:00
Satyajit Sahoo
4d50aef412 feat: sync latest stack 2020-02-03 01:00:51 +01:00
Satyajit Sahoo
7cfb15e0b7 chore: sync latest stack 2020-01-23 12:43:29 +01:00
Satyajit Sahoo
c8ddec72a6 fix: fix wrong option name for backImage 2020-01-12 15:51:59 +01:00
Satyajit Sahoo
2733b2a319 chore: sync latest stack 2020-01-05 14:56:36 +01:00
Satyajit Sahoo
005f4844b1 chore: update dependencies 2020-01-03 21:53:55 +01:00
Satyajit Sahoo
0096b59bc5 fix: fix wrong type for navigator. closes #324 2020-01-02 15:18:40 +01:00
Satyajit Sahoo
9ac1904862 refactor: migrate to animated 2020-01-01 17:37:34 +01:00
Satyajit Sahoo
c3133cdb5f refactor: remove cardTransparent in favor of cardStyle 2019-12-16 16:25:22 +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
osdnk
a5b389837d fix: reset velocity if no modal animation 2019-12-09 20:42:42 +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
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