Commit Graph

1636 Commits

Author SHA1 Message Date
Sergey Smyshlyaev
c77a25ced8 [fix] Improve PermissionsAndroid mock
Close #1837
2020-12-14 13:08:42 -08:00
Nicolas Gallagher
4a1b31e3ef Use GitHub workflows for CI
Close #1845
Fix #1841
2020-12-14 13:04:07 -08:00
Nicolas Gallagher
e03ac45173 Update benchmark libraries
Remove the slow and rarely-used libraries from the suite of implementations.
Update the remaining packages.

Close #1838
2020-12-08 12:50:22 -08:00
Nicolas Gallagher
751f7ec6db [fix] Allow unitless numbers for CSS grid properties 2020-12-08 11:23:16 -08:00
Nicolas Gallagher
c4e0fd7ab5 0.14.9 0.14.9 2020-12-04 11:47:36 -08:00
Nicolas Gallagher
624b9ddec0 [fix] Modal z-index
The z-index must be applied to the outer element (or even the portal element)
if the portal is to stack relative to other silbings. Previously, the z-index
was only relative to the outer Modal element which had a non-static position.

Fix #1820
2020-12-04 11:31:46 -08:00
Tsubasa Sakai
1b2bb16fd7 [fix] Use MediaQuery event listener fallback
'addEventListener' is not supported by Safari <= 13, needs to fallback to 'addListener'

Close #1823
2020-12-03 13:03:12 -08:00
Raibima Putra
5f19b41928 [fix] TextInput selectTextOnFocus for Safari
Close #1810
2020-12-03 12:50:35 -08:00
Nicolas Gallagher
366f0e9923 Fix TouchableOpacity onPressStart with React 17
React 17 changed something that means the dispatchConfig is not included in
synthetic events.

Fix #1833
2020-12-03 12:50:26 -08:00
dependabot[bot]
a877a02beb Bump dot-prop from 4.2.0 to 4.2.1
Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/sindresorhus/dot-prop/releases)
- [Commits](https://github.com/sindresorhus/dot-prop/compare/v4.2.0...v4.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-11 16:23:33 -08:00
Nicolas Gallagher
6928fab9e0 0.14.8 0.14.8 2020-11-09 15:57:38 -08:00
Nicolas Gallagher
e5ded58972 [fix] ScrollView doesn't respond to descendant scroll events
Workaround for React DOM's non-standard bubbling of scroll events.

Fix #1800
2020-11-09 15:46:48 -08:00
Kyle Fang
cf91d75471 [add] LogBox stub
Close #1794
2020-11-04 10:55:43 -08:00
Nicolas Gallagher
6624a70cca 0.14.7 0.14.7 2020-10-30 10:52:37 -07:00
Nicolas Gallagher
5806b249dd [fix] Use browser expansion of 'flex' style
Fix #1792
2020-10-30 10:47:32 -07:00
Nicolas Gallagher
1048f7ce3e 0.14.6 0.14.6 2020-10-29 17:14:39 -07:00
Nicolas Gallagher
18f5a33c0d [fix] Don't require mocking window.matchMedia in jest
For people who don't mock unsupported DOM APIs for jsdom in their jest setup.

Fix #1789
2020-10-29 17:13:47 -07:00
Nicolas Gallagher
07e578edb8 [fix] ResponderSystem negotiation logic
This fixes a bug in the negotiation logic that caused a cycle of
terminate->grant events to be sent to the current responder during a pointer
move. The root cause was using an incorrect event path in the calculation of
the lowest common ancestor's index. The fix is to ensure that the event path
stored with the current responder is pruned to begin with the node that is the
current responder (rather than any child responders it may have contained).
2020-10-29 17:13:46 -07:00
Nicolas Gallagher
d2e6c29e25 [fix] Pan interactions should cancel 'click' events on the target
If a pan interaction has taken place, it is not expected that 'click' events
occur on the target element when the pointer is released (as was occuring with
mouse pointers). This patch cancels any 'click' that occurs within the pan
target's subtree, within 250ms of the pan gesture ending.

Fix #1788
2020-10-29 17:13:42 -07:00
Nicolas Gallagher
03897d32be [fix] Disabled pressables should propagate 'click' events
If a pressable is disabled it should not prevent the propagation of native
'click' events, unless the underlying DOM node has an 'aria-role' of 'button'.
This emulates the native '<button>' behavior.

Fix #1781
2020-10-29 15:57:35 -07:00
Nicolas Gallagher
b8fddcf6b1 0.14.5 0.14.5 2020-10-27 11:06:27 -07:00
Charlie Croom
d9c755dff0 [fix] Enter key handling for components explicitly given accessible prop
Close #1783
2020-10-27 10:54:24 -07:00
burakgormek
63c39454de [fix] Pressable disabled cursor state
Close #1782
2020-10-27 10:54:18 -07:00
Nicolas Gallagher
89be8a9f8b Fix ViewProps import path
This error was not surfaced by Flow locally but surfaced in CI.
2020-10-22 12:28:17 -07:00
Nicolas Gallagher
b4e53e8cd3 0.14.4 0.14.4 2020-10-22 11:00:02 -07:00
Charlie Croom
cea4172efb [fix] Prevent onClick being called when certain roles are disabled
Fix #1779
Close #1780
2020-10-22 10:56:40 -07:00
Charlie Croom
a2d72ee89c [fix] Avoid usePlatformMethods excess ref creation
Close #1777
2020-10-22 10:35:13 -07:00
Nicolas Gallagher
2428b6c6fc 0.14.3 0.14.3 2020-10-19 16:02:22 -07:00
Nicolas Gallagher
0aa77685aa [fix] Add matrix transform style
Remove the deprecated 'transformMatrix' style prop and support 'matrix' and
'matrix3d' in the 'transform' prop.

Fix #1771
2020-10-19 15:50:02 -07:00
Nicolas Gallagher
663458713c 0.14.2 0.14.2 2020-10-16 12:57:49 -07:00
TikiTDO
3118315140 [fix] Remove 'collapsable' prop from createAnimatedComponent
This is an Android-only prop that has no platform guard in React Native. The
web has a native 'collapsable' prop that React DOM complains about when it is
not a string value.

Close #1767
2020-10-16 12:55:51 -07:00
Charlie Croom
09c2f1975b [fix] Prevent constant Image reloading when source given as an object
Close #1770
2020-10-16 12:55:48 -07:00
Charlie Croom
18d5d449a7 [fix] Callback ref less on Views by making classList constant
Close #1766
2020-10-16 12:33:58 -07:00
Nicolas Gallagher
933bd138ce 0.14.1 0.14.1 2020-10-12 13:41:20 -07:00
Nicolas Gallagher
c2019a9881 [fix] Pressable cursor and touch-action styles
Also add unit tests for Pressable.

Fix #1764
2020-10-12 13:37:42 -07:00
Nicolas Gallagher
78174d7b48 0.14.0 0.14.0 2020-10-09 12:59:41 -07:00
Nicolas Gallagher
38fd574984 [add] Pressable support for hover state
This patch ports the 'useHover' hook to React Native for Web, providing hover
state that is scoped to a pressable and does not bubble to ancestor pressables.
This behavior aligns with the behavior of the focus and press states.

Fix #1708
2020-10-09 11:35:36 -07:00
Nicolas Gallagher
5b7a6bc30a Move hooks into 'modules' directory 2020-10-09 11:35:35 -07:00
James Ward
d97a1ca567 [add] Modal component
This adds support for the React Native Modal on web.

The app content is hidden from screen readers by setting the aria-modal flag on
the modal. This focus is trapped within the modal, both when attempting to
focus elsewhere using the mouse as well as when attempting to focus elsewhere
using the keyboard. A built-in "Escape to close" mechanism is been implemented
that calls 'onRequestClose' for the active modal.

Close #1646
Fix #1020
2020-10-09 11:32:31 -07:00
Nicolas Gallagher
6bd41a622a Remove react-dom vendor directory 2020-10-09 11:32:30 -07:00
Nicolas Gallagher
108366a724 [change] Default flex-basis value of Views
React Native has an implementation of flexbox that does not quite follow the
W3C spec for flexbox. Previously, React Native for Web attempted to replicate
the React Native rendering by setting flexBasis to 0%. However, this created
its own problems where views could collapse down to 0px in height on the web.
This patch relies sets the default flexBasis back to 'auto'. This will cause
different rendering inconsistencies with React Native, which can be addressed
by making changes to existing React Native styles. And ultimately, it is up to
Yoga to correct its flexbox implementation.

Fix #1640
Fix #1604
Fix #1264
Close #1265
2020-10-09 11:32:30 -07:00
Nicolas Gallagher
bf2e10d482 0.13.18 0.13.18 2020-10-09 11:17:09 -07:00
Mark Lawlor
faf7fa3374 [fix] skip ResizeObserver warning during SSR
Close #1762
2020-10-09 11:14:00 -07:00
Nicolas Gallagher
df14c7278a 0.13.17 0.13.17 2020-10-08 12:29:11 -07:00
Nicolas Gallagher
b15e8784c4 Add unit tests for ref imperative methods 2020-10-08 12:27:15 -07:00
Nicolas Gallagher
583e16fa8d Memoize refs
Refs can be memoized following the fix in the previous commit.

Fix #1755
Fix #1665
2020-10-07 15:28:34 -07:00
Nicolas Gallagher
b4322734a2 [fix] Order of ref merging
Ensure internal refs are called before the forwardedRef. This ensures that the
DOM element mutation performed by usePlatformMethods occurs before user-space
refs are called.

Ref #1749
2020-10-07 15:28:33 -07:00
Nicolas Gallagher
bdcb4de7dc 0.13.16 0.13.16 2020-10-06 11:41:31 -07:00
Nicolas Gallagher
d8ee51e326 [fix] CSS scrollbarWidth
The previous code wasn't inserting the W3C rule because it had the same selector as the rule for proprietary styles. However, the Firefox value isn't supported anymore, and the Edge value is unnecessary as Edge uses Blink now. This patch removes the non-WebKit fallback styles for this property.

Fix #1760
2020-10-06 11:38:17 -07:00
Nicolas Gallagher
aad0c88cea 0.13.15 0.13.15 2020-10-05 15:38:06 -07:00