Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 922 Bytes

README.md

File metadata and controls

56 lines (45 loc) · 922 Bytes

Calculator

Setting up project

npx create-expo-app calculator

Initializing app

npm start

Functional component

import React from 'react';
import { Text } from 'react-native';
import Estilo from './estilo';

export default props => {
  return (
    <>
      <Text style={Estilo.fontG}>
        
      </Text>
    </>
  )

};

User snippet for functional component

{
  "Functional Component": {
    "scope": "javascript,typescript",
    "prefix": "compfunc",
    "body": [
      "import React from 'react';",
      "import { Text } from 'react-native';",
      "import Estilo from './estilo';",
      "",
      "export default props => {",
      "  return (",
      "    <>",
      "      <Text style={Estilo.fontG}>",
      "        $1",
      "      </Text>",
      "    </>",
      "  )",
      "",
      "};"
    ],
    "description": "Log output to console"
  }
}