1783 Commits

Author SHA1 Message Date
Nicolas Gallagher da80ede2dc 0.17.6 0.17.6 2022-02-18 10:31:11 -08:00
Andre Staltz 7ec2489c78 [fix] inverted VirtualizedList supports wheel events
Close #2223
Close #1241
Fix #995
2022-02-18 10:29:29 -08:00
Nicolas Gallagher 17241dbcfa [fix] AppState.removeEventListener deprecation
Fix #2215
Fix #2166
2022-02-18 10:13:42 -08:00
Rajat Parashar 79707ce1b3 [fix] Text numberOfLines=1 on Safari"
This reverts commit 562db69a0f.

Close #2193
Fix #2186
Fix #2111
2022-02-17 14:47:36 -08:00
meenu 944b45cd0b [fix] Switch support for custom colors when disabled
Close #2164
Fix #1758
2022-02-17 14:47:36 -08:00
Markus Kobisch d21c401620 [fix] Avoid edge case where focus jumps between TextInputs
Close #2163
Fix #2162
2022-02-17 14:47:36 -08:00
youngvform 438b7b7281 [fix] Linking.openURL opens 'tel' links in current tab.
Close #2125
Fix #2124
2022-02-17 14:47:36 -08:00
dependabot[bot] e217f737ab Bump nanoid from 3.1.28 to 3.2.0
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.28 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.28...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-30 11:01:22 -08:00
dependabot[bot] aaefb1bdde Bump follow-redirects from 1.13.1 to 1.14.7
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.13.1 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.13.1...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-30 11:01:08 -08:00
dependabot[bot] 9d86760db3 Bump markdown-it from 12.0.4 to 12.3.2
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 12.0.4 to 12.3.2.
- [Release notes](https://github.com/markdown-it/markdown-it/releases)
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/12.0.4...12.3.2)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-30 11:00:53 -08:00
Nicolas Gallagher 081a128db3 0.17.5 0.17.5 2021-09-29 10:34:06 -07:00
Chris Green d05fa342d0 Add failing test for style resolving behavior
Less specific shorthand style properties are being applied instead of the more
specific styles if there is another element also with one of the more specific
styles. This is due to the common styles being pulled out as class names for
de-duplication.

Ref #2007
Close #2010
2021-09-29 10:31:00 -07:00
Nicolas Gallagher 04fbf5e5ce [fix] Animated no longer sets non-unique IDs on elements
Remove problematic code added only for native platforms using Fabric.

Fix #2136
2021-09-29 10:27:15 -07:00
Nicolas Gallagher 798d34e192 0.17.4 0.17.4 2021-09-29 10:24:51 -07:00
Nicolas Gallagher 8999188b5d [fix] Pressable disabled focus behavior
Fix #2127
2021-09-29 10:19:26 -07:00
Nicolas Gallagher 36681c4f54 0.17.3 0.17.3 2021-09-29 10:12:10 -07:00
Chris Zelenak 126642783b [fix] AppState addEventListener returns subscription object
Close #2129
2021-09-29 10:09:36 -07:00
Cloud Le 4aba2bdcf4 [fix] Dimensions addEventListener returns subscription object
Fix #2130
Close #2131
2021-09-29 10:06:58 -07:00
Nicolas Gallagher 68e878be8f 0.17.2 0.17.2 2021-09-28 11:41:39 -07:00
Warr1611 192472b226 Add document about use PanResponder on elements with text content
Close #2123
2021-09-28 11:39:21 -07:00
sawa-zen aeae9dd184 Update documentation styling example
Close #2137
2021-09-28 11:35:18 -07:00
Janic Duplessis 562db69a0f [fix] numberOfLines=1 on Safari
Safari requires use of `white-space:nowrap` if not using the multi-line
technique. This patch uses the multi-lines styles to truncate single-lines.

Fix #2111
Close #2113
2021-09-28 11:19:33 -07:00
dependabot[bot] ea3975d357 Bump next from 10.0.6 to 11.1.1
Bumps [next](https://github.com/vercel/next.js) from 10.0.6 to 11.1.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v10.0.6...v11.1.1)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 18:03:33 +00:00
dependabot[bot] b80b06da0d Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 11:03:02 -07:00
dependabot[bot] 38530ff46a Bump prismjs from 1.24.0 to 1.25.0
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.24.0 to 1.25.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.24.0...v1.25.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 11:02:50 -07:00
dependabot[bot] ec7cf83308 Bump tmpl from 1.0.4 to 1.0.5
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 11:02:31 -07:00
dependabot[bot] f21b8f4408 Bump semver-regex from 3.1.2 to 3.1.3
Bumps [semver-regex](https://github.com/sindresorhus/semver-regex) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/sindresorhus/semver-regex/releases)
- [Commits](https://github.com/sindresorhus/semver-regex/commits)

---
updated-dependencies:
- dependency-name: semver-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 11:02:25 -07:00
dependabot[bot] 815709fb78 Bump nth-check from 2.0.0 to 2.0.1
Bumps [nth-check](https://github.com/fb55/nth-check) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/fb55/nth-check/releases)
- [Commits](https://github.com/fb55/nth-check/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: nth-check
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 11:02:02 -07:00
Imad Bouziani a6c976416b Fix examples link in README 2021-07-20 10:35:14 -07:00
dependabot[bot] 98dcefd904 Bump prismjs from 1.23.0 to 1.24.0
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.23.0...v1.24.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 08:52:33 -07:00
dependabot[bot] 13f7b9e2f4 Bump color-string from 1.5.4 to 1.5.5
Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.4 to 1.5.5.
- [Release notes](https://github.com/Qix-/color-string/releases)
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Qix-/color-string/compare/1.5.4...1.5.5)

---
updated-dependencies:
- dependency-name: color-string
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-23 10:48:27 -07:00
dependabot[bot] a5be8bdcd7 Bump y18n from 4.0.0 to 4.0.3
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.3.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/y18n-v4.0.3/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/compare/v4.0.0...y18n-v4.0.3)

---
updated-dependencies:
- dependency-name: y18n
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-23 10:48:01 -07:00
Nicolas Gallagher 39ee95b4a4 0.17.1 0.17.1 2021-06-23 10:45:51 -07:00
Andrew Hayward ba3c728f2c [fix] Image does not set persistent click handler
Only set the click handler if it is needed. This was previously always set,
which caused screen readers to announce the element as "clickable".

Close #2061
2021-06-23 10:42:05 -07:00
Nicolas Gallagher b2eb3ca03f 0.17.0 0.17.0 2021-06-17 09:45:30 -07:00
Evan Charlton ab98851881 [fix] Text preserves white-space if numberOfLines={1}
Preserve meaningful white-space when `numberOfLines={1}` by using the `pre`
value instead of `nowrap`.

Source: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space

Close #2058
2021-06-17 09:39:28 -07:00
Nicolas Gallagher d48f630600 [fix] ProgressBar & Switch for High Contrast mode
Prevent these controls from becoming invisible in Windows High Contrast mode by
disabling forced color adjustment for these elements.

Fix #1606
2021-06-14 12:41:09 -07:00
Nicolas Gallagher 2a930b7e3f [fix] Change logic of PressResponder for keyboards
This patch removes the keyboard `onClick` shim from `unstable_createElement`
and adds it to the `PressResponder`.

Previously, the logic in `createElement` was calling `onClick` during
`onKeyDown`. This could result in React state update warnings if the host
element was no longer in the DOM during `keyup`.

Fix #2051
2021-06-14 10:25:20 -07:00
Nicolas Gallagher 6d7a1eaf0e [change] Remove createElement host type inference for 'href'
Elements other than 'a' support the 'href' attribute, so the element type
should not be inferred from 'href'. Longer term no host element type inference
should be performed by 'createElement'.

Fix #1958
2021-06-08 16:45:20 -07:00
Nicolas Gallagher 7775b3ab19 [change] Remove special treatment of accessibilityRole="menuitem"
This role is not meant to be in the tab flow unless the element type demands
it. Users will now have to manage `onClick` and `onKeyDown` callbacks to apply
the desired interaction behavior.

Fix #1968
2021-06-08 16:45:20 -07:00
Nicolas Gallagher 22f3d142c6 [fix] Remove CSS reset for number spin buttons
The TextInput element no longer uses the 'number' input type, so this reset is
no longer necessary. Furthermore, the reset potentially impacts non-framework
components.

Fix #1949
2021-06-08 16:45:20 -07:00
Nicolas Gallagher 6de619563c 0.16.5 0.16.5 2021-06-08 16:43:36 -07:00
aryo a7fabe4500 [fix] ScrollView forwards style when 'refreshControl' prop is present
Fix #2024
2021-06-08 16:28:23 -07:00
Nicolas Gallagher a968c0ce66 TextInput: event handlers get hostNode from event not ref
Avoid the event handlers depending on a React ref when the hostNode can be
found on the event object.
2021-06-08 16:12:20 -07:00
Nicolas Gallagher 697479e2cd [fix] TextInput calls onFocus if autoFocus={true}
The host node ref is not a dependency of the focus handling. Previously, the
focus callback was not called if the element was auto-focused, because  React
DOM calls `onFocus` while the object ref is `null`.

Fix #2045
2021-06-08 15:58:16 -07:00
Nicolas Gallagher 3fc7634819 0.16.4 0.16.4 2021-06-08 15:13:05 -07:00
Nicolas Gallagher 146426dc27 [fix] Allow focusable={false} to set tabIndex="-1"
Close #2046
2021-06-08 13:38:46 -07:00
Petr Bela 3a0cc734cb [fix] Convert 'aspectRatio' style value to string
The RN value is a number and the CSS value must be a string.

Close #2038
2021-06-08 13:10:24 -07:00
Satyajit Sahoo 17d8b12299 Update docs example of webpack url-loader
Latest versions of `url-loader` default `esModule: true` which outputs a module
object with `default` property for asset imports. This behaviour is different
from Metro which doesn't do that.

This breaks compatibility with a lot of React Native libraries since it's
common to do an inline `require` for assets., so it'd work for Metro, but break
with url-loader.

Close #2040
2021-06-08 13:04:21 -07:00
dependabot[bot] 72e7f46ae4 Bump trim-newlines from 3.0.0 to 3.0.1
Bumps [trim-newlines](https://github.com/sindresorhus/trim-newlines) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sindresorhus/trim-newlines/releases)
- [Commits](https://github.com/sindresorhus/trim-newlines/commits)

---
updated-dependencies:
- dependency-name: trim-newlines
  dependency-type: indirect
...

Close #2048

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-08 13:02:33 -07:00