// Component const EmptyMessage = (props) => ( <View style={styles.container}> <Icon name={props.icon} size={35} color={grey1} /> <Text style={styles.text}>{ props.message }</Text> </View> )
render() { const { user: { isAuthenticated } } = this.props return ( <View style={styles.container}> <Body> <KeyboardAwareScrollView> { isAuthenticated ? <PostLogin /> : <PreLogin /> } </KeyboardAwareScrollView> </Body> </View> ) }
render() { return ( <View style={styles.container}> <Body> <ProductList /> </Body> </View> ) }
// Component const Toast = (props) => ( <Touchable onPress={props.onPress}> <View style={styles.container}> <Text style={styles.text}>{ props.message }</Text> </View> </Touchable> )
function Card ({ children, }) { return ( <View style={styles.container}> {children} </View> ); }
// Component const Loading = (props) => ( <View style={styles.container}> <ActivityIndicator size={props.size} color={secondary} /> <Text style={styles.text}>{ props.message }</Text> </View> )
render() { return ( <View style={styles.container}> <Body> <CrateList /> </Body> </View> ) }
// Component const EmptyMessage = (props) => ( <View style={styles.container}> <Icon name={props.icon} size={35} color={grey1} /> <Text style={styles.text}>{ props.message }</Text> </View> )
render() { return ( <View style={styles.container}> <Body> <ProductList /> </Body> </View> ) }
render() { return ( <View style={styles.container}> <Body> <CrateList /> </Body> </View> ) }
// Component const Loading = (props) => ( <View style={styles.container}> <ActivityIndicator size={props.size} color={secondary} /> <Text style={styles.text}>{ props.message }</Text> </View> )
render() { const { user: { isAuthenticated } } = this.props return ( <View style={styles.container}> <Body> <KeyboardAwareScrollView> { isAuthenticated ? <PostLogin /> : <PreLogin /> } </KeyboardAwareScrollView> </Body> </View> ) }
// Component const TabContent = (props) => { const { items, active } = props return( <View style={styles.container}> { items[active] } </View> ) }
// Component const TabContent = (props) => { const { items, active } = props return( <View style={styles.container}> { items[active] } </View> ) }
// Component const Toast = (props) => ( <Touchable onPress={props.onPress}> <View style={styles.container}> <Text style={styles.text}>{ props.message }</Text> </View> </Touchable> )