React Native component stateless view children

    0

    2

    Khalid Khan

    React Native companion for Javascript

    React Native component stateless with view children

    Library: react-native

    Shortcut: reactnative.component.viewchildren

    import React from 'react';
    import { View } from 'react-native';
    
    const componentName = ({
      children, style, ...rest
    }) => (
      <View style={style}>
        {children}
      </View>
    );
    
    export default componentName;
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.