your recipe card header background

    typescriptReactNativeArrowFunctionComponent

    0

    2

    lucycodes42

    JavaScript snippets for React

    The code imports View and Text from React Native. It also declares a variable, ${1:filename} . The ${1:filename} variable will be used to bind a function to an object. The function will be used to render a View component. The View component will have a Text component as its child. The ${1:filename} variable will be used in the function to refer to the child Text component.

    Library: react

    Shortcut: tsrnf

    import { View, Text } from 'react-native'
    import React from 'react'
    
    type Props = {}
    
    const ${1:filename} = (props: Props) => {
      return (
        <View>
          <Text>first</Text>
        </View>
      )
    }
    
    export default ${1:filename}
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.