mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Updated docs for next
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<span class="token punctuation">{</span>data<span class="token punctuation">:</span> <span class="token punctuation">[</span><span class="token operator">...</span><span class="token punctuation">]</span><span class="token punctuation">,</span> title<span class="token punctuation">:</span> <span class="token operator">...</span><span class="token punctuation">,</span> renderItem<span class="token punctuation">:</span> <span class="token operator">...</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
|
||||
<span class="token punctuation">]</span><span class="token punctuation">}</span>
|
||||
<span class="token operator">/</span><span class="token operator">></span></div><p>This is a convenience wrapper around <a href="docs/virtualizedlist.html" target="_blank"><code><VirtualizedList></code></a>,
|
||||
and thus inherits it's props (as well as those of <code>ScrollView</code>) that aren't explicitly listed
|
||||
and thus inherits its props (as well as those of <code>ScrollView</code>) that aren't explicitly listed
|
||||
here, along with the following caveats:</p><ul><li>Internal state is not preserved when content scrolls out of the render window. Make sure all
|
||||
your data is captured in the item data or external stores like Flux, Redux, or Relay.</li><li>This is a <code>PureComponent</code> which means that it will not re-render if <code>props</code> remain shallow-
|
||||
equal. Make sure that everything your <code>renderItem</code> function depends on is passed as a prop
|
||||
|
||||
Reference in New Issue
Block a user