Nicolas Gallagher
79e6dbaab5
Move 'NativeMethods' docs to direct manipulation guide
2017-06-09 14:49:15 -07:00
Nicolas Gallagher
fc86c876e0
Update formatter and linter
2017-06-09 12:59:39 -07:00
Fabrizio Moscon
33d1cdf193
Fix webpack documentation link
2017-06-09 10:28:30 -07:00
Maxime Thirouin
483a76cb5c
Fix incorrect links in View documentation
2017-06-09 15:21:10 +02:00
Karan Thakkar
d57fb6407a
Fix link to getting started in AppRegistry doc
...
Fixes #498
2017-06-01 10:50:38 +05:30
Nicolas Gallagher
bcdeda5dab
[fix] Flow type checking and annotations
...
Fixes dozens of Flow errors; adds type annotations; marks more files for
Flow type checking. Fixes a bug in 'AppState'.
15 Flow errors remaining. Several React Native files are still not type
checked (e.g., PanResponder, Touchables)
Ref #465
2017-05-27 10:44:33 -07:00
Nicolas Gallagher
a388ef3e26
Rename 'examples' to 'docs/storybook'
...
Also changes several npm script names
2017-05-25 22:22:20 -07:00
Nicolas Gallagher
a84ecefa5d
Rename 'performance' to 'benchmarks'
2017-05-25 21:44:01 -07:00
vaukalak
118b64a932
Add docs on platform-specific components
2017-05-22 11:22:02 -07:00
Nicolas Gallagher
124de7562d
Add 'advanced use' and 'style' docs
...
Fix #450
2017-05-06 16:06:20 +01:00
周中原
79a6a5a486
Fix presentation of props in 'Button' docs
2017-05-05 10:30:10 -07:00
Nathan Broadbent
ba24a882be
Link to another starter kit example
2017-04-26 15:11:16 -07:00
Nathan Leung
ae9a9cde5f
Fix example webpack config in documentation
2017-04-24 13:21:46 -07:00
Nicolas Gallagher
227971d22c
[add] support for CSS grid properties (experimental)
...
Allow people to experiment with using CSS grid in react-native. (No
support for shorthand properties.)
2017-04-22 10:34:43 -07:00
Nicolas Gallagher
4822cf4620
[add] support for 'clip' and 'textIndent' styles
2017-04-22 10:06:27 -07:00
Nathan Broadbent
91e4528eac
Allow filter property in CSS
2017-04-22 22:56:07 +07:00
Nicolas Gallagher
6e71e1e058
[fix] attempt to avoid need for 'Array.from' polyfill
...
Fix #409
2017-04-20 18:04:09 -07:00
Nicolas Gallagher
3f7a4e455f
[add] support 'outlineColor' style prop
...
Fix #435
2017-04-20 14:50:14 -07:00
Nicolas Gallagher
17ed63129f
Add a note about accessibilityRole compat
2017-04-20 10:39:34 -07:00
Nicolas Gallagher
7705f521c8
[change] new accessibility features and docs
...
* Change 'accessible' to align with React Native.
* Add support for 'importantForAccessibility'.
* Stop event propagation for keyboard-activated Touchables (nested
Touchables now respond the same as when touch-activated).
* Fix whitespace layout of nested Text elements.
* Use 'div' for Text to improve TalkBack grouping.
* Rewrite accessibility docs.
Close #382
Fix #408
2017-04-19 16:41:01 -07:00
Nicolas Gallagher
ed994dc670
Update 'getting-started' docs
2017-04-15 09:12:08 -07:00
Nicolas Gallagher
03ea259d70
Update documentation
...
Close #417
2017-04-14 09:03:38 -07:00
Nicolas Gallagher
ab45211401
[change] remove TextInput autogrow behaviour
...
This is non-standard. Removes 'maxNumberOfLines' too.
Ref #287
2017-04-13 20:46:28 -07:00
Nicolas Gallagher
50b168cc41
Add note about Safari flexbox performance
2017-04-05 14:48:11 -07:00
Nicolas Gallagher
9c61fe58d3
[add] View 'hitSlop' shim
...
Shim the 'hitSlop' prop using a positioned element to extend the size of
a View's touch target without changing layout. Unlike the native
implementation, the touch target may extend past the parent view bounds.
2017-03-22 23:01:53 -07:00
Matthias Le Brun
a3ed8f05e6
[add] resize 'TextInput' style
...
Fix #363
2017-02-18 12:49:25 -08:00
Nicolas Gallagher
b653fe0bd3
[add] fontFeatureSettings 'Text' style
...
Fix #331
2017-02-18 12:18:28 -08:00
Nicolas Gallagher
30da226e4d
Update component style docs
2017-02-18 12:07:30 -08:00
Nicolas Gallagher
10ef2bfe20
[fix] i18n styles
...
1. Fix auto-flipping of styles
The StyleRegistry didn't account for LTR/RTL when caching the results of
style resolution. The 'writingDirection' style is no longer flipped; no
clear use case for it.
2. Remove experimental '$noI18n' style prop suffix
This feature is essentially unused, and less likely to be used with the
introduction of 'dir=auto' on 'Text'. Removing also marginally improves
render performance.
2017-02-17 13:25:54 -08:00
Nicolas Gallagher
c2501f2bc2
Add documentation for webpack@2 *.web.js resolving
...
Fix #334
2017-01-28 09:57:14 -08:00
Nicolas Gallagher
3ffc005a7b
[fix] setNativeProps resolving logic
...
Since styles are set using both class names and inline styles,
'setNativeProps' needs an additional resolving step that accounts for
the pre-existing state of RN-managed styles on the DOM node.
Fix #321
2017-01-08 18:25:39 -08:00
Nicolas Gallagher
768e895701
[fix] View transforms; add perspective styles
...
Fixes a regression introduced by
5db300df35
The `perspective` function is distinct from the `perspective` property.
This patch reverts the regression and adds support for `perspective`,
`perspectiveOrigin`, and `transformOrigin`.
Fix #208
2017-01-07 19:02:57 -08:00
Nicolas Gallagher
0696721488
Document transition and animation View styles
2017-01-07 18:12:26 -08:00
Nicolas Gallagher
5e4c8e520a
[fix] StyleSheet registry key check
2017-01-02 23:24:24 -08:00
Nicolas Gallagher
a74be91b7c
Minor documentation changes
2017-01-02 11:27:46 -08:00
Nicolas Gallagher
d87f71ebc1
[change] StyleSheet performance rewrite
...
Improves StyleSheet benchmark performance by 13x. Removes undocumented
`StyleSheet.resolve` API.
Typical mean (and first) task duration.
[benchmark] DeepTree: depth=3, breadth=10, wrap=4)
-master 2809.76ms (3117.64ms)
-patch 211.2ms (364.28ms)
[benchmark] DeepTree: depth=5, breadth=3, wrap=1)
-master 421.25ms (428.15ms)
-patch 32.46ms (47.36ms)
This patch adds memoization of DOM prop resolution (~3-4x faster), and
re-introduces a `className`-based styling strategy (~3-4x faster).
Styles map to "atomic css" rules.
Fix #307
2017-01-01 17:42:25 -08:00
Nicolas Gallagher
509920be4b
[add] Image 'prefetch' and 'getSize' statics
...
Fix #160
2016-12-26 13:31:40 +00:00
Nicolas Gallagher
32f454de66
[change] add Platform and Touchable to 'core' module
2016-12-23 12:45:54 +00:00
Nicolas Gallagher
695eba45af
[add] Clipboard API
...
Close #125
Fix #122
2016-12-16 11:59:22 +00:00
Nicolas Gallagher
4c46126ffe
[change] ScrollView event normalization
2016-12-12 14:21:33 +00:00
Calvin Chan
f8d5c15405
[add] Button component
2016-12-12 13:02:16 +00:00
Nicolas Gallagher
7536508fe3
Update docs
2016-12-07 16:22:39 -08:00
Nicolas Gallagher
5032ed6fe1
Update AppRegistry docs
2016-11-25 12:36:05 -08:00
Nicolas Gallagher
d65c92eea9
[change] prepare for react-dom@15.4.0
...
Don't depend directly on the 'react-dom' module as it will be prebuilt
in 15.4. Leave server-side rendering to 'react-dom/server'.
2016-11-22 16:57:28 -08:00
Nicolas Gallagher
89f5a13891
[change] TextInput uses DOM elements
...
This patch changes TextInput to use DOM inputs directly, rather than
trying to reimplement 'placeholder'. Removes support for
'placeholderTextColor'.
Fix #54
Fix #224
Fix #229
Fix #235
Fix #253
2016-11-21 16:52:40 -08:00
Nicolas Gallagher
2b826dc7f4
[add] TextInput support for selection
2016-10-28 23:37:19 -07:00
Nicolas Gallagher
5a03cb25cb
[add] TextInput support for blurOnSubmit and onSubmitEditing
2016-10-28 21:15:35 -07:00
Nicolas Gallagher
44e60d12e3
[change] TextInput support for autoCorrect and autoComplete
2016-10-28 10:51:05 -07:00
Nicolas Gallagher
fc60f8d332
[add] TextInput support for autoCapitalize
2016-10-28 10:36:06 -07:00
Nicolas Gallagher
2a65ca6fc0
[add] TextInput support for isFocused
2016-10-27 22:31:43 -07:00