mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
update website
This commit is contained in:
@@ -291,7 +291,7 @@ oscillate around the end value. In the above example, we would add
|
||||
See the below gif for an example of where in your interface you might
|
||||
use this.</p><p><img src="/react-native/img/Rebound.gif" alt=""> Screenshot from
|
||||
<a href="https://github.com/brentvatne/react-native-scrollable-tab-view" target="_blank">react-native-scrollable-tab-view</a>.
|
||||
You can run a simlar example <a href="https://rnplay.org/apps/qHU_5w" target="_blank">here</a>.</p><h4><a class="anchor" name="a-sidenote-about-setnativeprops"></a>A sidenote about setNativeProps <a class="hash-link" href="#a-sidenote-about-setnativeprops">#</a></h4><p>As mentioned <a href="/react-native/docs/direct-manipulation.html" target="">in the Direction Manipulation section</a>,
|
||||
You can run a similar example <a href="https://rnplay.org/apps/qHU_5w" target="_blank">here</a>.</p><h4><a class="anchor" name="a-sidenote-about-setnativeprops"></a>A sidenote about setNativeProps <a class="hash-link" href="#a-sidenote-about-setnativeprops">#</a></h4><p>As mentioned <a href="/react-native/docs/direct-manipulation.html" target="">in the Direction Manipulation section</a>,
|
||||
<code>setNativeProps</code> allows us to modify properties of native-backed
|
||||
components (components that are actually backed by native views, unlike
|
||||
composite components) directly, without having to <code>setState</code> and
|
||||
@@ -353,7 +353,7 @@ make them customizable, React Native exposes a
|
||||
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
|
||||
|
||||
<span class="token keyword">var</span> CustomSceneConfig <span class="token operator">=</span> Object<span class="token punctuation">.</span><span class="token function">assign<span class="token punctuation">(</span></span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> BaseConfig<span class="token punctuation">,</span> <span class="token punctuation">{</span>
|
||||
<span class="token comment" spellcheck="true"> // A very tighly wound spring will make this transition fast
|
||||
<span class="token comment" spellcheck="true"> // A very tightly wound spring will make this transition fast
|
||||
</span> springTension<span class="token punctuation">:</span> <span class="token number">100</span><span class="token punctuation">,</span>
|
||||
springFriction<span class="token punctuation">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user