Commit Graph

845 Commits

Author SHA1 Message Date
Nicolas Gallagher dee1467a3e [fix] 'render' export uses ReactDOM.createRoot
AppRegistry.runApplication uses `ReactDOM.createRoot` by default, but
the `render` export uses the legacy `ReactDOM.render`. This patch makes
those 2 APIs consistent.

It also makes some adjustments to the `createSheet` internals to more
reliably implement and test style sheet replication within ShadowRoot's
and iframes.

Fix #2612
2023-11-29 11:55:07 -08:00
Nicolas Gallagher a3ea2a0a4f 0.19.9 2023-09-19 15:43:41 -07:00
Pedro Guerreiro 5e41208b78 [fix] TextInput cursor position with secureTextEntry
On web, the cursor jumps to the start of the input when secureTextEntry is toggled.
Preserve and restore previous selection after secureTextEntry is toggled.

Close #2576
2023-09-19 15:41:01 -07:00
Nicolas Gallagher 67a0bde7b3 0.19.8 2023-08-24 12:20:53 -07:00
Bernhard Owen Josephus d8f1b5892d [fix] Correct timing of <Modal> onDismiss callback
Close #2558
2023-08-24 12:14:04 -07:00
Nicolas Gallagher ef95fc0c2b 0.19.7 2023-07-20 13:08:42 -07:00
ramiel 617b438530 [fix] Only stringify numeric aspectRatio
Close #2561
2023-07-20 13:06:31 -07:00
tarunrajput 213b616b3c [fix] Switch uses aria-label on native control
Close #2559
Fix #2549
2023-07-20 12:45:37 -07:00
Nicolas Gallagher a8a0c1763b [fix] Pressable button click regression
Update keyboard handling code to avoid calling preventDefault for
'keydown' events occuring on a native button element. This was causing
native 'click' event to be cancelled on buttons.

Fix #2560
2023-07-19 14:09:43 -07:00
berkcoker 3babcc4587 [fix] Remove StyleSheet.compose(a, b) in FlatList
Close #2555
Fix #2554
2023-07-19 13:34:53 -07:00
Nicolas Gallagher b10c66351e 0.19.6 2023-06-28 13:39:46 -07:00
Nicolas Gallagher 869c416a36 [fix] Animated fix transforms on null values
Fix #2528
Fix #2523
Close #2546
Close #2530
2023-06-28 12:30:55 -07:00
Nicolas Gallagher d200276659 [fix] Missing @react-native/normalize-color updates 2023-06-28 12:30:42 -07:00
Meenu Makkar 80e83fa578 [fix] Update normalize-color
Picks up latest CSS Color support from React Native

Close #2545
Fix #2525
2023-06-26 16:59:48 -07:00
Aswin S 1c376dbb0c [fix] Add support for caretHidden prop in TextInput
Close #2542
Fix #2541
2023-06-26 16:58:17 -07:00
Nicolas Gallagher c350d82427 0.19.5 2023-06-15 20:27:12 -07:00
tarunrajput 6dbef6eece Fix website undesired vertical scrollbar on Windows
Fix #2488
Close #2529
2023-06-15 20:23:51 -07:00
ankit-tailor 14204b083f Use correct "NativeBase" name in website docs
Close #2518
2023-06-15 20:22:21 -07:00
Ali Toshmatov 6ab9b6125b [fix] Dimensions measurements with window zoom
Fixes `window.height` and `window.width` so that they do not change when
pinch-zoomed. This issue was introduced by #2438 when `documentElement`
measurements were replaced by `visualViewport`.

Close #2520
2023-06-15 20:19:18 -07:00
jennifersalas 9b69c73938 [fix] Make children pressable when parent is disabled
It fixes the inconsistency between native builds and react-native-web,
where when disabling Pressables and other tappable elements, the
children on native builds are still interactable (swiping, tapping, etc)
but un-interactable in react-native-web. On react-native-web, the
pointerEvents were set to 'none' to address 094bd0e, which causes this
inconsistency.

The solution was to change from 'none' to 'box-none', which maintains
the desired behavior of the original issue and addresses the current.

Close #2536
Fix #2391
2023-06-15 20:16:04 -07:00
Nicolas Gallagher 2a901e5fb1 [fix] Image: style resolving
Cannot pass the result of StyleSheet.flatten to components, as it mixes
dynamic and static (compiled away) style information.

With the way Image is currently implemented, we have to override
'boxShadow' in all cases to avoid the 'shadow*' props being incorrectly
applied as a box-shadow. Once Image is implemented using createElement,
we can disable the 'boxShadow" generation just for Image.

Fix #2527
2023-06-07 10:27:48 -07:00
Nicolas Gallagher 39b94b1945 Remove internal createEventHandle module
Migrate to 'addEventListener' helper.

Fix #2459
2023-04-12 13:46:44 -07:00
Nicolas Gallagher e160546ec8 0.19.4 2023-04-12 12:39:57 -07:00
Nicolas Gallagher 84723245ce [fix] Linking listener.remove() API
Linking.removeEventListener() was deprecated in react-native@0.65

Fix #2507
2023-04-12 12:36:14 -07:00
Nicolas Gallagher 526eac15d5 0.19.3 2023-04-12 11:42:11 -07:00
Nicolas Gallagher 76383017d7 [fix] Defaults and fallback logic for web props 2023-04-12 11:37:10 -07:00
Nicolas Gallagher 3e74ed0ea7 Update interactive examples 2023-04-12 10:59:31 -07:00
Nicolas Gallagher 338cce194d [fix] SSR of Animated doesn't call useLayoutEffect 2023-04-12 10:59:24 -07:00
Nicolas Gallagher 6795738037 [fix] Patch more internal sources of deprecation warnings 2023-04-12 10:59:12 -07:00
Nicolas Gallagher 4a61c1600f 0.19.2 2023-04-05 10:47:54 -07:00
Lucio Bertin Chávez Fuentes 5ace60eb7e [fix] VirtualizedList sync from react-native
Fix #2432
Close #2167
Close #2502
2023-04-05 10:35:15 -07:00
Nicolas Gallagher 1c5119b7e1 [fix] Reintroduce BackHandler with console.error
This API will be removed in a future version.
2023-04-05 10:19:54 -07:00
rory 985c79f924 [fix] Nested scroll in inverted VirtualizedList
Close #2436
Fix #2435
2023-03-28 16:09:37 -07:00
LucioChavezFuentes 03ddd95590 [fix] layout measurement API consistency with React Native
* Ignore CSS transforms in measurement.
* Cancel measurement if elements are unmounted.

Close #2501
Fix #1254
2023-03-28 16:01:44 -07:00
Nicolas Gallagher 782a19a54e 0.19.1 2023-03-27 15:04:39 -07:00
Nicolas Gallagher 876079a56f [fix] Patch internal sources of deprecation warnings 2023-03-27 14:05:51 -07:00
Nicolas Gallagher 75920f3695 0.19.0 2023-03-27 10:39:53 -07:00
Nicolas Gallagher 550afdc81d Update documentation to match API changes 2023-03-21 12:52:07 -07:00
Nicolas Gallagher 47671ca44e [fix] Text inheritance of textAlign
Set textAlign on the default Text element. Prevents inheritance of
textAlign set on a parent View.

Fix #2498
2023-03-20 12:25:51 -07:00
Nicolas Gallagher 29fcd9ab6d [change] Text is position relative by default
Match default Text rendering in React Native.

Fix #2498
2023-03-20 12:25:50 -07:00
ntdiary 47d77ac256 [change] Add task queue for InteractionManager
Close #2399
2023-03-20 12:25:50 -07:00
Bartosz Kaszubowski 618660484f Update Expo info in docs
Close #2460
2023-03-20 12:25:50 -07:00
Rajat Parashar 9431f1e441 Fix autoCorrect documentation
Close #2408
2023-03-20 12:25:50 -07:00
Nicolas Gallagher 80591bf963 [add] Support for PointerEvent props
Adds support for PointerEvent prop handlers and removes `onClickCapture`.

Ref #2377
2023-03-20 12:25:50 -07:00
Nicolas Gallagher bc6e02e9d0 [change] Move all non-standard CSS transforms to 'preprocess' step
This patch reorganizes the style compiler so that the 'preprocess' step
is responsible for all the work needed to transform any non-standard CSS
from React Native into a form that can be 'compiled' to rules for the
CSSStyleSheet.

Over time the 'preprocess' step should eventually be unnecessary as
React Native aligns its APIs with CSS APIs. And any external style
compilers should be able to run the 'preprocess' function over the style
input to produce valid CSS as input for the compiler.
2023-03-20 12:25:50 -07:00
Nicolas Gallagher 43b463bdbd [change] W3C logical styles support
* Support logical styles like 'marginInlineStart' and
  'insetInlineStart' via polyfills.
* Deprecate non-standard 'marginStart' etc. properties.

Ref #2379
2023-03-20 12:25:50 -07:00
Nicolas Gallagher 831f59e003 [change] Deprecate 'transform' style array syntax
Use space-separated values per W3C standard.

Ref #2379
2023-03-20 12:25:50 -07:00
Nicolas Gallagher 5bc51420a8 [change] W3C verticalAlign style
* Add support for verticalAlign style.
* Deprecate textAlignVertical style.

Ref #2379
2023-03-20 12:25:50 -07:00
Nicolas Gallagher c6e77c36af [change] W3C fontVariant style values
* Add support for space-separated values.
* Deprecate array values.

Ref #2379
2023-03-20 12:25:50 -07:00
Nicolas Gallagher 72f9d4d05c Rewrite docs about company usage 2023-03-20 12:25:50 -07:00