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
Nicolas Gallagher
6bf2443433
[fix] Remove unused dependencies
...
Fix #2020
2021-06-08 13:00:53 -07:00
Bhanu Teja Allaparthi
968b3e90a1
[fix] Avoid retaining DOM nodes in Touchable
...
Explicitly clear the DOM nodes to prevent memory leaks.
Fix #2039
Close #2047
2021-06-08 11:47:18 -07:00
Nicolas Gallagher
5b7b974224
[fix] Avoid retaining DOM nodes in PressResponder
2021-06-08 11:43:59 -07:00
dependabot[bot]
e1aa5378e1
Bump hosted-git-info from 2.7.1 to 2.8.9
...
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.7.1 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.7.1...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-13 14:51:09 -07:00
dependabot[bot]
5e607f8ee1
Bump handlebars from 4.7.6 to 4.7.7
...
Bumps [handlebars](https://github.com/wycats/handlebars.js ) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases )
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md )
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-13 14:50:58 -07:00
dependabot[bot]
eea9034f04
Bump ua-parser-js from 0.7.19 to 0.7.28
...
Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js ) from 0.7.19 to 0.7.28.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases )
- [Commits](https://github.com/faisalman/ua-parser-js/compare/0.7.19...0.7.28 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-13 14:50:47 -07:00
Nicolas Gallagher
855d5340c3
0.16.3
0.16.3
2021-05-13 14:33:24 -07:00
Andrew Hayward
db9df2b55f
[fix] Accessibility ref lists
...
Generate string-separated values for accessibility props that accept an array
of id strings.
Close #2021
2021-05-13 14:30:20 -07:00
Nicolas Gallagher
c9eb794790
0.16.2
0.16.2
2021-05-03 10:09:58 -07:00
Nicolas Gallagher
d792bc5424
[fix] Pressable onPress is called for ctrl+click on Windows
...
Pressing ctrl+click on a link opens a new tab in Windows. On macOS it opens the
context menu but doesn't dispatch a 'click' event. On other element types both
OS dispatch a 'click'. Removing the condition related to 'ctrlKey' produces the
desired behavior across OS.
Fix #2000
2021-05-03 10:00:14 -07:00
Andreas Kjellqvist
8fdbbc8d02
[fix] Animated interpolation of color values
...
Fix #2001
Close #2002
2021-04-30 14:51:51 -07:00
Elliot Dickison
e826485622
[fix] Use of process.env.NODE_ENV
...
Corrects misspelling in a few locations and adds tests for the Platform module.
Close #2006
2021-04-30 13:39:37 -07:00
Nicolas Gallagher
5726d83544
[fix] Pressable supports onContextMenu prop
...
Fix #2004
2021-04-29 17:01:05 -07:00
wishawa
d8f60b4824
Fix one of the Linking code examples
...
Close #1996
2021-04-23 16:39:58 -07:00
Nicolas Gallagher
8362f3907f
0.16.1
0.16.1
2021-04-23 11:09:26 -07:00
Charlie Croom
78bf1595fa
[fix] Additional Flow type fixes
...
Close #1997
2021-04-23 11:07:31 -07:00
Nicolas Gallagher
2d9dca42fa
0.16.0
0.16.0
2021-04-20 12:19:56 -07:00
Charlie Croom
6c3f6546d5
Further improvements to Flow types
...
Close #1985
2021-04-20 10:47:27 -07:00
Nicolas Gallagher
ab5d11953d
Update documentation for 0.16
2021-04-20 10:46:52 -07:00
Nicolas Gallagher
4a4c4d2461
Deduplicate yarn.lock
...
Close #1981
2021-04-20 10:44:46 -07:00
Nicolas Gallagher
89cf78d529
[change] Fix the Dimensions.window value
...
Fixes issues in Safari from using window.innerWidth. Using
documentElement.clientWidth doesn't have issues and provides a more practical
value for the canvas width that excludes the width of scrollbars.
Fix #1369
Fix #1905
2021-04-20 10:44:46 -07:00
Charlie Croom
c4e2d7a919
[change] Add generated Flow files to package dist
...
Fix #1684
Close #1982
2021-04-20 10:44:46 -07:00
Nicolas Gallagher
4e77aebc17
Fix flow error in useEvent
2021-04-20 10:44:45 -07:00
Charlie Croom
84fd278af1
Update flow to 0.148
...
Close #1980
2021-04-20 10:44:45 -07:00
Charlie Croom
c67b695b6b
Codemod export-types on src folder
...
Close #1972
2021-04-20 10:44:45 -07:00
Charlie Croom
fdd1cebc75
Update component and ref types
...
Close #1971
2021-04-20 10:44:45 -07:00
Charlie Croom
f60d435e9b
[change] Update Animated
...
Close #1970
2021-04-20 10:44:45 -07:00
Charlie Croom
56dd0fb656
Move flow-typed files into default directory
...
Close #1953
2021-04-20 10:44:44 -07:00
Charlie Croom
0caa29c0bf
[change] Update vendored files
2021-04-20 10:44:44 -07:00
Charlie Croom
26a3e1e958
Update flow to 0.142
2021-04-20 10:44:44 -07:00
Nicolas Gallagher
7293a613d5
Add unit tests for setNativeProps style mutation
2021-04-20 10:33:03 -07:00
Nicolas Gallagher
9d6d39f2c7
0.15.7
0.15.7
2021-04-13 12:42:07 -07:00