Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #35964

Re: cost {} = ? (React Native)

From CantReact <CantReact@please.nospam>
Newsgroups comp.lang.javascript
Subject Re: cost {} = ? (React Native)
Date 2019-01-15 18:34 -0500
Organization Aioe.org NNTP Server
Message-ID <q1lqmh$1i4c$1@gioia.aioe.org> (permalink)
References <q1lmg6$10cn$1@gioia.aioe.org>

Show all headers | View raw


This one explains something, but not everything (albeit I may just need 
to understand more of how React Native works)

https://stackoverflow.com/questions/33798717/javascript-es6-const-with-curly-braces



On 1/15/2019 5:23 PM, CantReact wrote:
> 
> Hi, looking at some React Native examples and I see things like this:
> 
> const {
>    FooterComponent,
>    HeaderComponent,
>    ItemComponent,
>    ListEmptyComponent,
>    ItemSeparatorComponent,
>    PlainInput,
>    SeparatorComponent,
>    Spindicator,
>    genItemData,
>    getItemLayout,
>    pressItem,
>    renderSmallSwitchOption,
> } = require('./ListExampleShared');
> 
> or this:
> 
> const {
>    Animated,
>    Image,
>    Platform,
>    TouchableHighlight,
>    StyleSheet,
>    Switch,
>    Text,
>    TextInput,
>    View,
> } = ReactNative;
> 
> What is this? Some kind of import? Can anyone explain the logic behind 
> this?
> 
> Thank you
> 

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

cost {} = ? (React Native) CantReact <CantReact@please.nospam> - 2019-01-15 17:23 -0500
  Re: cost {} = ? (React Native) CantReact <CantReact@please.nospam> - 2019-01-15 18:34 -0500
  Re: cost {} = ? (React Native) Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-01-16 11:32 +0000
    Re: cost {} = ? (React Native) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-01-16 22:03 +0100
      Re: cost {} = ? (React Native) "Mark-" <nospam@mapson.xyz> - 2019-01-17 02:19 +0000
      Re: cost {} = ? (React Native) CantReact <CantReact@please.nospam> - 2019-01-17 22:41 -0500
    Re: cost {} = ? (React Native) CantReact <CantReact@please.nospam> - 2019-01-17 22:37 -0500

csiph-web