3 ms·
This does not make sense to me: var { ScrollView, TouchableHighlight, Text } = React; It gives an error in Console.
by nashashmi 12y ago
This does not make sense to me:
var { ScrollView, TouchableHighlight, Text } = React;
It gives an error in Console.
- funksta 12y agoThis is destructuring (a new feature in ES6, the upcoming version of JavaScript). There's a great in-depth read on how it works here: http://www.2ality.com/2015/01/es6-destructuring.html http://www.2ality.com/2015/01/es6-destructuring.html