Commit Graph

730 Commits

Author SHA1 Message Date
Nicolas Gallagher 0a0bb5d879 Revert "[fix] Encode URL in background-image CSS property"
This reverts commit 91fc3c7aab.

Fix #2304
Ref #2286
2022-06-14 10:29:26 -07:00
Nicolas Gallagher 1cc95da907 [fix] Inline style property order 2022-06-13 17:35:20 -07:00
Nicolas Gallagher 7095118edd 0.18.0 2022-06-10 13:30:24 -07:00
Matias Lang 91fc3c7aab [fix] Encode URL in background-image CSS property
Solution based on
https://stackoverflow.com/questions/25613552/how-should-i-escape-image-urls-for-css

Close #2286
2022-06-10 13:16:24 -07:00
Nicolas Gallagher cb8381af7b Update docs for 0.18 release 2022-06-10 13:14:46 -07:00
Mike 094bd0efc5 [fix] Prevent href navigation for disabled Pressables
Close #2299
2022-06-10 10:13:15 -07:00
Anthony van Winkle ffd300ebfd [fix] Linking.openURL supports 'target' value
Close #2277
2022-06-10 10:13:14 -07:00
sawa-zen c4223a6a57 Fix docs URL for ReactNativeBase
Close #2282
2022-06-10 10:13:14 -07:00
Nicolas Gallagher 8034a57aae Minor fixes
Close #2264
Close #2275
2022-06-10 10:13:14 -07:00
Nicolas Gallagher 3326aab292 Update copyright headers 2022-03-22 10:07:02 -07:00
David Rieman edec9798d1 [change] Update FlatList, VirtualizedList, and SectionList vendor modules
Close #2241
Fix #2030
Fix #1608
2022-03-22 09:47:23 -07:00
Nicolas Gallagher da1a75a7f4 [change] Refactor localization APIs
* Control writing direction using 'dir' and 'lang' props.
* Change the compiler output for RTL styles polyfill.
* Export 'useLocaleContext' for working with writing direction context.
* Turn I18nManager into a mock API
2022-03-22 09:44:08 -07:00
Filip Holm e7a99f5ef2 [change] Show focus ring on CheckBox and Switch
Close #2242
2022-03-02 10:50:05 -08:00
Nicolas Gallagher 5cab098dd4 Update localization docs and examples 2022-03-02 10:50:05 -08:00
Nicolas Gallagher 314d78c0cc Update packages and benchmarks
Remove libraries from benchmarks as comparison to css-modules baseline is what
matters. This makes benchmark builds faster and will reduce how often people
open PRs asking for their library to be included.

Close #2210
2022-03-02 10:50:05 -08:00
Nicolas Gallagher 9b0c1193a2 [change] Remove jest preset
Also add node-based unit tests for SSR APIs.
2022-03-02 10:50:04 -08:00
Nicolas Gallagher b27c9820db [change] StyleSheet rewrite
* Improves React Native compatibility by making StyleSheet.create the identify function.
* Improves React 18 support by inserting styles on eval.
* Supports use with multiple windows (i.e., iframes) and shadow roots.
* Supports nested LTR/RTL layouts.
* Supports 3rd party compilers and extraction to static CSS.
* Fixes static and dynamic short/longform deduplication.
* Reduces browser support: Safari 10.1+, Chromium Edge, no IE, no legacy Android browsers.
* Removes automatic vendor-prefixing of inline styles (for better perf).
* Removes focus-visible polyfill as modern browsers no longer show focus rings for mouse interactions.

Close #2208
Fix #2138
Fix #2196
Fix #2007
Fix #1517
2022-03-02 10:50:04 -08:00
Nicolas Gallagher 174ebb3c5d [change] Remove deprecated accessibility APIs
Removes 'accessible', 'accessibilityState', and 'accessibilityValue' props.
2022-03-02 10:06:20 -08:00
Nicolas Gallagher 9583155523 Remove unused benchmarks and libraries
We only need to test against the baseline of css-modules.

Fix #2210
2022-03-02 10:06:20 -08:00
Nicolas Gallagher c113e4605c Fix canUseDOM imports
Close #2149
2022-03-02 10:06:20 -08:00
Nicolas Gallagher dc9ecfbc84 0.17.7 2022-03-01 13:22:24 -08:00
Nicolas Gallagher 8cc79ea8d0 [fix] TextInput numberOfLines for text with line breaks
Reverts the change made for #2058, which is considered an avoidable
edge-case.

Fix #2243
2022-03-01 13:21:17 -08:00
David Rieman 9ffda21659 Add FlatList examples
Close #2229
2022-03-01 12:10:09 -08:00
David Rieman aaa58d7d75 Add SectionList example page
Close #2240
2022-03-01 12:09:17 -08:00
David Rieman c0e3409ace Fix 'yarn lint' issue
Close #2238
2022-03-01 11:59:16 -08:00
Nicolas Gallagher ea87af27b2 AppState docs without deprecated API 2022-02-22 11:44:19 -08:00
Nicolas Gallagher da80ede2dc 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] 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 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 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 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 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
Nicolas Gallagher 39ee95b4a4 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 2021-06-17 09:45:30 -07:00