diff --git a/blog/2017/03/13/better-list-views.html b/blog/2017/03/13/better-list-views.html index 84df94c50b0..cba2afabbf8 100644 --- a/blog/2017/03/13/better-list-views.html +++ b/blog/2017/03/13/better-list-views.html @@ -2,7 +2,7 @@ data={[{title: 'Title Text', key: 'item1'}, ...]} renderItem={({item}) => <ListItem title={item.title} />} />
<SectionList> #If you want to render a set of data broken into logical sections, maybe with section headers (e.g. in an alphabetical address book), and potentially with heterogeneous data and rendering (such as a profile view with some buttons followed by a composer, then a photo grid, then a friend grid, and finally a list of stories), this is the way to go.
Components in React Native are styled using JavaScript. Color properties usually match how CSS works on the web.
React Native supports rgb() and rgba() in both hexadecimal and functional notation:
'#f0f' (#rgb)'#ff00ff' (#rrggbb)
'rgb(255, 0, 255)'
'rgba(255, 255, 255, 1.0)'
'#f0ff' (#rgba)
'#ff00ff00' (#rrggbbaa)hsl() and hsla() is supported in functional notation:
'hsl(360, 100%, 100%)''hsla(360, 100%, 100%, 1.0)'transparent #This is a shortcut for rgba(0,0,0,0):
'transparent'You can also use color names as values. React Native follows the CSS3 specification:
You can edit the content above on GitHub and send us a pull request!
Components in React Native are styled using JavaScript. Color properties usually match how CSS works on the web.
React Native supports rgb() and rgba() in both hexadecimal and functional notation:
'#f0f' (#rgb)'#ff00ff' (#rrggbb)
'rgb(255, 0, 255)'
'rgba(255, 255, 255, 1.0)'
'#f0ff' (#rgba)
'#ff00ff00' (#rrggbbaa)hsl() and hsla() is supported in functional notation:
'hsl(360, 100%, 100%)''hsla(360, 100%, 100%, 1.0)'transparent #This is a shortcut for rgba(0,0,0,0):
'transparent'You can also use color names as values. React Native follows the CSS3 specification:
You can edit the content above on GitHub and send us a pull request!
A performant interface for rendering sectioned lists, supporting the most handy features:
If you don't need section support and want a simpler interface, use
<FlatList>.
Simple Examples:
renderItem, Header, Footer, etc. functions depend on an
much more. Note these items will never be unmounted as part of the windowed rendering in order
to improve perceived performance of scroll-to-top actions.Used to extract a unique key for a given item at the specified index. Key is used for caching and as the react key to track item re-ordering. The default extractor checks item.key, then -falls back to using the index, like react does.
Called once when the scroll position gets within onEndReachedThreshold of the rendered
+falls back to using the index, like react does.
Called once when the scroll position gets within onEndReachedThreshold of the rendered
content.
How far from the end (in units of visible length of the list) the bottom edge of the
list must be from the end of the content to trigger the onEndReached callback.
Thus a value of 0.5 will trigger onEndReached when the end of the content is
diff --git a/releases/next/docs/touchablewithoutfeedback.html b/releases/next/docs/touchablewithoutfeedback.html
index b972b110027..c522379b1cb 100644
--- a/releases/next/docs/touchablewithoutfeedback.html
+++ b/releases/next/docs/touchablewithoutfeedback.html
@@ -1,4 +1,4 @@
-
Do not use unless you have a very good reason. All the elements that +
Do not use unless you have a very good reason. All elements that respond to press should have a visual feedback when touched.
TouchableWithoutFeedback supports only one child. If you wish to have several child components, wrap them in a View.
Thousands of apps are using React Native, from established Fortune 500 companies to hot new startups. If you're curious to see what can be accomplished with React Native, check out these apps!
Some of these are hybrid native/React Native apps.