1548 Commits

Author SHA1 Message Date
Nicolas Gallagher 920211b998 [change] Remove AlertIOS
Ref #1352
Ref https://github.com/facebook/react-native/issues/23313
2019-10-04 11:07:08 -07:00
Nicolas Gallagher c0c7a18aca [change] Remove ActionSheetIOS
Ref #1352
Ref https://github.com/facebook/react-native/issues/23313
2019-10-04 11:07:08 -07:00
Marnus Weststrate 250ee3c234 [fix] Only inject ResponderEventPlugin client-side
Close #1434
Fix #1433
2019-09-30 10:49:41 -07:00
John Rees 6ce88e6db0 Fix docs link to create-react-app
Close #1440
2019-09-30 10:49:24 -07:00
Nicolas Gallagher e810f1fd2b 0.11.7 0.11.7 2019-08-16 13:15:07 -07:00
Quentin Woivré d2e8d616e2 [fix] Support for native scroll-width style
Close #1418
2019-08-16 13:09:30 -07:00
Nicolas Gallagher 1cce9a1668 0.11.6 0.11.6 2019-08-09 11:51:16 -07:00
Giuseppe Gurgone 96a23c1c21 [fix] StyleSheet hydration with single quotes in attribute selectors
Edge uses single quotes for attribute selectors.

Fix #1317
Close #1415
2019-08-09 11:23:50 -07:00
Charlie Croom ebbade3a6f [fix] TextInput support for 'returnKeyType'
Close #1413

Co-authored-by: Nicolas Gallagher <nicolasgallagher@gmail.com>
2019-08-09 11:21:17 -07:00
Pawel Borkowski ef770d4bd1 [fix] Add support for browsers that implement scrollbar-width
Close #1395
2019-08-09 11:08:55 -07:00
Bruno Lemos a7ddd7b9ac [fix] SafeAreaView ref supports setNativeProps
https://github.com/facebook/react-native/pull/24589

Close #1407
2019-08-09 11:01:08 -07:00
Evan Bacon 8f5e7d4e14 [fix] Export DeviceEventEmitter
Close #1402
2019-08-09 10:58:30 -07:00
Nicolas Gallagher 45f94eb43d 0.11.5 0.11.5 2019-07-02 14:06:34 -07:00
Nicolas Gallagher 5092be40ac Fix RNTester Image examples
The 'resizeMode' static no longer exists.

Fix #1360
Close #1387
2019-07-02 13:23:44 -07:00
Evan Bacon b144992f51 [fix] Add enum types to interaction prop types
Close #1358
2019-07-02 13:23:44 -07:00
Nicolas Gallagher 9d5a41c702 [fix] Don't stringify application params
Close #1365
2019-07-02 13:17:53 -07:00
Evan Bacon 11d00ff111 [add] SafeAreaView support for iOS 11 CSS constant
Close #1359
2019-07-02 13:09:59 -07:00
Ross Williams 8908db7690 [fix] InteractionManager runAfterInteractions resolve
Close #1355
InteractionManager runAfterInteractions does not resolve its promise unless the function is provided with a callback. Using promises, the user of the library should not need to provide a callback. This update adds an else case when there is no callback to call the Promise's resolve function without arguments.
2019-07-02 12:56:17 -07:00
Giuseppe Gurgone 29146fe5bc [fix] StyleSheet group sorting
Close #1356
2019-07-02 12:54:42 -07:00
Nicolas Gallagher 33dc3cb018 0.11.4 0.11.4 2019-05-21 14:17:21 -07:00
Nicolas Gallagher 4f5de8d016 [fix] typo in ScrollView prevents hiding scrollbars 2019-05-21 14:14:23 -07:00
Nicolas Gallagher cddc2e346b 0.11.3 0.11.3 2019-05-21 12:21:08 -07:00
Evan Bacon fa09df8b59 [fix] ScrollView support for hiding scroll indicators
Implements 'showsHorizontalScrollIndicator' and 'showVerticalScrollIndicator' by polyfilling the 'scrollbar-width' property from the draft CSS spec for scrollbars. Scrollbars can only be shown for both or neither axis.

Close #1307

Co-authored-by: Nicolas Gallagher <nicolasgallagher@gmail.com>
2019-05-21 11:02:38 -07:00
Nicolas Gallagher be5106f5d3 [fix] textDecoration{Color,Line,Style} styles
Attempting to fallback to CSS2 text-decoration is not reliable for inline
styles. This patch assumes CSS3 text-decoration support when server-rendering,
and uses CSS.supports to check for runtime support. When CSS3 support is
available the long-form properties are preserved.

Fix #1312
2019-05-15 17:33:53 -07:00
Charlie Croom 37ca236d09 [fix] Image displays defaultSource until source load completes
This fixes an issue that would cause the defaultSource to be removed as soon as
the source beings to load. The original intent was to support progressive
JPEGs. However, in cases where a defaultSource has been provided, we should
respect the intent to display it until the primary source is ready to
immediately replace the defaultSource.

Close #1345
2019-05-15 16:17:00 -07:00
Charlie Croom 950bfd039c [add] Image.queryCache API
Image.queryCache is a React Native method that allows the user to see
if a given uri is in the cache. It specifies three return options:
disk, memory or both. Choosing both seemed most appropriate since
we don't really know and can't confirm.

The way Image is implemented, if RNW thinks the image might already
be loaded, it displays it immediately. Otherwise there can be a flash
of a frame. In some scenarios, if the user chooses to preload and then
make an Image element, it would still flash. By adding it to the cache,
we can prevent that.

Close #1344
2019-05-15 15:41:05 -07:00
Nicolas Gallagher 39d2e18ccf [fix] Text accessibilityRole propTypes warning
Close #1320
2019-05-15 11:23:24 -07:00
Nicolas Gallagher e9f68e380b [fix] Avoid using Object.values
Not everyone is polyfilling older environments

Fix #1334
2019-05-15 11:22:02 -07:00
Doug Miller 2ce434e8f8 [fix] Babel plugin rewrite for main index require
Recently the default export was removed from react-native-web. In some
scenarios it is possible to still get to this import path which does not work
anymore. Removing the `.default` fixes commonjs imports from index.

Close #1341
2019-05-15 11:05:35 -07:00
Janic Duplessis 3eeda686b1 [fix] Prevent maxFontSizeMultiplier prop forwarding to DOM
Close #1313
2019-05-15 10:59:36 -07:00
MoOx 70e3ea8b57 Add documentation for Node.js module aliasing
Close #1315
2019-05-15 10:57:51 -07:00
ashbhir cc99391f9d [fix] Text default border style
Close #1335
2019-05-15 10:45:05 -07:00
Yukiya Nakagawa 27713bd8cc Fix docs typo
Close #1297
2019-05-15 10:44:31 -07:00
Nicolas Gallagher 801937748b 0.11.2 0.11.2 2019-03-22 10:02:44 -07:00
Nicolas Gallagher 9cbe387d9f [fix] CSS insertion in Edge browser
Edge browser throws `HierarchyRequestError` while inserting CSS rules into CSS
Media Queries. Therefore, a different mechanism is required to control CSS
order. This patch tracks the starting index of each group of CSS rules in the
DOM style sheet.

Fix #1300
Close #1302
2019-03-22 09:58:18 -07:00
Nicolas Gallagher c1459d7b21 Remove '!important' check from setValueForStyles
'!important' styles are no longer used internally and are not supported in the
public API.
2019-03-19 10:32:59 -07:00
Mathieu Acthernoene 36dacb2052 [change] Update flow-bin to 0.95.1
Fix related type errors

Close #1269

Co-authored-by: Nicolas Gallagher <nicolasgallagher@gmail.com>
2019-03-18 13:00:05 -07:00
Nicolas Gallagher b732cec83e Fix copyright headers 2019-03-18 11:13:17 -07:00
Nicolas Gallagher ad78fc7a38 0.11.1 0.11.1 2019-03-15 14:08:24 -07:00
Nicolas Gallagher 33e54c755b [fix] StyleSheet SSR of classic CSS
Hack something together to get classic CSS going through the same pathway as
the rest of the styles. This gets classic CSS showing up in the SSR CSS output.

Fix #1286
2019-03-15 10:20:56 -07:00
Paul Armstrong 74a36a2a4e [fix] Jest preset module export
Export the preset as a module so that paths can be resolved relative to a Jest
config file.

Close #1290
2019-03-15 10:07:56 -07:00
Nicolas Gallagher 8d1f5afead Fix website Image examples
Remove use of 'resizeMode' static, which is no longer supported.
2019-03-14 14:20:25 -07:00
Nicolas Gallagher 763e2d4001 0.11.0 0.11.0 2019-03-12 17:45:10 -07:00
Nicolas Gallagher f507410ab4 [fix] Schema prop types
Ref 34427897f3
2019-03-12 17:43:22 -07:00
Nicolas Gallagher 97372d7e4c Update benchmark results for 0.11.0 2019-03-12 17:30:10 -07:00
Nicolas Gallagher 9872c97169 Remove whitespace from CSS rules
Minimizes bytes from CSS code that might be inlined in the head of the document
during SSR.
2019-03-12 13:53:48 -07:00
Nicolas Gallagher d50f6304dc [change] Add className prop deprecation warning
View and Text will not support the 'className' prop in a future release.

Fix #1146
2019-03-12 13:00:57 -07:00
Nicolas Gallagher 330895534d [change] CSS class prefix 'rn' -> 'r' 2019-03-12 13:00:57 -07:00
Nicolas Gallagher 0e302a50d2 [change] Refactor style resolver
Minor refactor of the style resolver to convert it to a factory function.
2019-03-12 13:00:57 -07:00
Nicolas Gallagher f048d848a1 [change] Replace outline with outline{Color,Style,Width} styles
Rather than mix shortform and longform properties, the 'outline' property is
removed in favour of the longform properties. Support for `outlineOffset` is
also included.

Fix #1255
Close #1256
2019-03-12 13:00:57 -07:00