Commit Graph

825 Commits

Author SHA1 Message Date
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
Nicolas Gallagher 42bf402929 [change] Support W3C props on TextInput
* Add support for 'enterKeyHint' prop.
* Add support for 'inputMode' prop.
* Add support for 'readOnly' prop.
* Add support for 'rows' prop.
* Deprecate 'keyboardType' prop.
* Deprecate 'returnKeyType' prop.
* Deprecate 'editable' prop.
* Deprecate 'numberOfLines' prop.

Ref #2379
2023-03-20 12:25:50 -07:00
Nicolas Gallagher 67d52a43a9 [change] Support W3C ARIA props and styles
* Add support for 'aria-*' and 'role' props.
* Add support for 'id' and 'tabIndex' props.
* Add support for 'pointerEvents' and 'userSelect' styles.
* Deprecate 'accessibility*' props.
* Deprecate 'nativeId' and 'focusable' props.
* Deprecate 'pointerEvents' and 'selectable' props.

Ref #2379
2023-03-20 12:25:50 -07:00
Nicolas Gallagher 2874b281ff [change] Port ScrollView to Class Component
Port ScrollView from legacy createReactClass to ES6 Class syntax.
2023-03-20 12:25:50 -07:00
Nicolas Gallagher a33c322152 [change] Deprecate Touchables and Button components
These components have been replaced by Pressable and will be removed
from React Native.

Fix #2382
2023-03-20 12:25:50 -07:00
Nicolas Gallagher e8a0cbc60a [change] Map 'button' and 'paragraph' role to HTML elements
Fix #1899
Close #1944
2023-03-20 12:25:50 -07:00
Nicolas Gallagher 95c8a545a7 [change] Image deprecate resizeMode and tintColor styles
The resizeMode and tintColor props should be used instead. The styles
will be removed in a future release.

Fix #2383
2023-03-20 12:25:47 -07:00
Nicolas Gallagher 1f5d0925a5 [fix] Animated works with compiled styles
Animated should now work with compiled and extracted styles. The
original styles are passed to components, rather than being flattened
into a new object that cannot be used by the style runtime to either
lookup the results of StyleSheet.create calls or consume extracted
styles. Inline styles that use AnimatedValue are moved into a seperate
object that is appended to the original styles.

Fix #2387
2023-03-20 12:25:14 -07:00
Nicolas Gallagher e68c327707 [change] Remove setNativeProps API
Previously deprecated, and not supported in the React Native Fabric
architecture.

Close #1935
2023-03-20 12:25:14 -07:00
Nicolas Gallagher f3138931af [change] Update Animated to support React 18
And remove deprecated AppState.removeListener API

Fix #2378
2023-03-20 12:25:14 -07:00
Nicolas Gallagher fc0d84fba4 [change] StyleSheet.compose() deprecation
Encourage use of existing array syntax for multiple styles. Eventually
we'll want to remove the compose() API to simplify the overall styling API.
2023-03-20 12:25:14 -07:00
Eddie Kimmel 9868738604 [change] React 18 support
* Support React 18 concurrency and constraints.
* Add new render / hydrate functions.
* Remove uses of findNodeHandle.
* Expose ability to unmount an application once ran.

Fix #1529
Close #2330
2023-03-20 12:25:10 -07:00
Nicolas Gallagher 3a024ee308 [change] Remove platform-specific exports 2023-03-20 12:24:17 -07:00
dependabot[bot] bf24fb5a3a Bump webpack from 5.73.0 to 5.76.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.73.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 11:10:32 -07:00
Nicolas Gallagher 57e2482eef 0.18.12 2023-01-25 14:07:01 -08:00
Abdelhafidh Belalia 77f6fba03d [fix] Avoid setting focus tabIndex on <body>
Also don't modify the tabIndex on contenteditable elements when using
programmatic focus APIs.

Fix #2473
Close #2468
2023-01-25 13:58:53 -08:00
Yogendra Rawal ccfd936f27 [fix] iOS not firing resize event when keyboard opens/closes
The workaround is listening to window.visualViewport 'resize' event.

Fix #2430
Close #2438
2023-01-25 13:13:26 -08:00
Nicolas Gallagher 21b5d44c74 0.18.11 2023-01-24 15:49:56 -08:00
Nicolas Gallagher ca152037bf [fix] 'accessibilityRequired' sets correct 'required' value
Fix #2451
2023-01-11 12:40:30 -08:00
Nicolas Gallagher fa47f80d34 0.18.10 2022-11-02 11:37:01 -07:00
Nicolas Gallagher 0f692f2c2b [fix] Dimensions.get() should not call change listeners
Fixes a bug introduced by 59af091fdb

Fix #2394
2022-11-02 11:26:24 -07:00