fix typo - missing 'new' keyword
Summary: <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> Fix typo in the documentation - a missing 'new' keyboard [ DOCS ] [ BUGFIX ] [Animations.md] - Fix typo - missing 'new' keyword <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAl ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> Closes https://github.com/facebook/react-native/pull/16379 Differential Revision: D6067964 Pulled By: hramos fbshipit-source-id: 8bd47aad252e9baa69cff7f878adfedfd94a5f55
This commit is contained in:
parent
7733d40237
commit
f71f8a936b
|
@ -154,7 +154,7 @@ There are some cases where an animated value needs to invert another animated va
|
|||
An example is inverting a scale (2x --> 0.5x):
|
||||
|
||||
```javascript
|
||||
const a = Animated.Value(1);
|
||||
const a = new Animated.Value(1);
|
||||
const b = Animated.divide(1, a);
|
||||
|
||||
Animated.spring(a, {
|
||||
|
|
Loading…
Reference in New Issue