master 438e7e71a85e cached
7 files
7.8 KB
2.2k tokens
1 requests
Download .txt
Repository: Rocketseat/rocketseat-vscode-react-native-snippets
Branch: master
Commit: 438e7e71a85e
Files: 7
Total size: 7.8 KB

Directory structure:
gitextract_1e4wdvhb/

├── .gitignore
├── .travis.yml
├── LICENSE
├── README.md
├── package.json
└── snippets/
    ├── snippets-ts.json
    └── snippets.json

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
RocketseatReactNative-*.vsix
node_modules

================================================
FILE: .travis.yml
================================================
language: node_js

node_js:
  - '8'

branches:
  only:
    - master

cache:
  yarn: true
  
before_publish:
  - yarn global add vsce

publish:
  - vsce package
  - vsce publish -p $TOKEN_VSCODE
  


================================================
FILE: LICENSE
================================================
MIT License

Copyright (c) 2019 Claudio Junior

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


================================================
FILE: README.md
================================================
<!--
*** Obrigado por estar vendo o nosso README. Se você tiver alguma sugestão
*** que possa melhorá-lo ainda mais dê um fork no repositório e crie uma Pull
*** Request ou abra uma Issue com a tag "sugestão".
*** Obrigado novamente! Agora vamos rodar esse projeto incrível :D
-->

[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/rocketseat.RocketseatReactNative.svg?label=Visual%20Studio%20Marketplace)](https://marketplace.visualstudio.com/items?itemName=rocketseat.RocketseatReactNative)
[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/rocketseat.RocketseatReactNative.svg)](https://marketplace.visualstudio.com/items?itemName=rocketseat.RocketseatReactNative)
[![Visual Studio Marketplace Rating](https://img.shields.io/visual-studio-marketplace/r/rocketseat.RocketseatReactNative.svg)](https://marketplace.visualstudio.com/items?itemName=rocketseat.RocketseatReactNative)
![GitHub](https://img.shields.io/github/license/rocketseat/rocketseat-vscode-react-native-snippets.svg)

<!-- PROJECT LOGO -->
<br />
<p align="center">
  <a href="https://rocketseat.com.br">
    <img src="https://raw.githubusercontent.com/Rocketseat/rocketseat-vscode-react-native-snippets/master/images/rocketseat_logo.png" alt="Logo">
  </a>

  <h3 align="center">React Native Snippets</h3>
</p>

<!-- TABLE OF CONTENTS -->

## Tabela de Conteúdo

- [Tabela de Conteúdo](#tabela-de-conte%C3%BAdo)
- [Sobre o Projeto](#sobre-o-projeto)
- [Começando](#come%C3%A7ando)
  - [Instalação](#instala%C3%A7%C3%A3o)
  - [Linguagens Suportadas](#linguagens-suportadas)
  - [Como Usar?](#como-usar)
  - [Snippets](#snippets)
- [Contribuição](#contribui%C3%A7%C3%A3o)
- [Licença](#licen%C3%A7a)
- [Contato](#contato)

<!-- ABOUT THE PROJECT -->

## Sobre o Projeto

Este projeto visa a disponibilização de um conjunto de Snippets ou atalhos para criação de componentes e arquivos de configuração em aplicações React Native.

## Começando

### Instalação

Para instalar uma extensão você pode executar o **Command Pallete** através do comando `Ctrl + Shift + P` ou `Cmd + Shift + P` , digitar `Install Extensions` e por fim dar um `Enter`, feito isso pesquise por Rocketseat e você vai encontrar a extensão **Rocketseat React Native**.

### Linguagens Suportadas

- JavaScript (.js)
- TypeScript (.ts)
- JavaScript React (.jsx)
- TypeScript React (.tsx)

### Como Usar?

Quando você instalar a Extensão o desenvolvimento em React Native será bem mais divertido.

![Create React Native Component](https://raw.githubusercontent.com/Rocketseat/rocketseat-vscode-react-native-snippets/master/images/component.gif)

### Snippets

Abaixo segue a lista com todos os Snippets disponíveis e os gatilhos para cada um. O **⇥** significa a tecla `TAB`.

|                 Gatilho | Conteúdo                                                                      |
| ----------------------: | ----------------------------------------------------------------------------- |
|                `rnfc →` | Cria um Componente **Functional**                                             |
|           `styled-rn →` | Cria um arquivo de Estilização com **Styled Components**                      |

<!-- CONTRIBUTING -->

## Contribuição

Contribuições são o que fazem a comunidade open source um lugar incrível para aprender, inspirar e criar. Qualquer contribuição que você fizer será **muito apreciada**.

1. Faça um Fork do projeto
2. Crie uma Branch para sua Feature (`git checkout -b feature/FeatureIncrivel`)
3. Adicione suas mudanças (`git add .`)
4. Comite suas mudanças (`git commit -m 'Adicionando uma Feature incrível!`)
5. Faça o Push da Branch (`git push origin feature/FeatureIncrivel`)
6. Abra uma Pull Request

<!-- LICENSE -->

## Licença

Distribuído sob a licença MIT. Veja `LICENSE` para mais informações.

<!-- CONTACT -->

## Contato

Rocketseat - [Github](https://github.com/rocketseat) - **oi@rocketseat.com.br**


================================================
FILE: package.json
================================================
{
  "name": "rocketseatreactnative",
  "description": "React Native snippets created by Rocketseat.",
  "version": "3.0.1",
  "displayName": "Rocketseat React Native",
  "publisher": "rocketseat",
  "icon": "images/rocketseat.png",
  "galleryBanner": {
    "color": "#7159c1",
    "theme": "dark"
  },
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/Rocketseat/rocketseat-vscode-react-native-snippets"
  },
  "engines": {
    "vscode": "0.10.x"
  },
  "categories": [
    "Snippets"
  ],
  "contributes": {
    "snippets": [
      {
        "language": "javascriptreact",
        "path": "./snippets/snippets.json"
      },
      {
        "language": "javascript",
        "path": "./snippets/snippets.json"
      },
      {
        "language": "typescript",
        "path": "./snippets/snippets-ts.json"
      },
      {
        "language": "typescriptreact",
        "path": "./snippets/snippets-ts.json"
      }
    ]
  },
  "devDependencies": {
    "vsce": "^1.75.0"
  }
}


================================================
FILE: snippets/snippets-ts.json
================================================
{
  "styles": {
    "prefix": "styled-react-native",
    "body": [
      "import styled from 'styled-components/native';",
      "",
      "export const ${1:Container} = styled.${2:View}`",
      "  ${3}",
      "`;",
      ""
    ],
    "description": "Create React Native Styled Components file"
  },

  "componentFunctionalTypescript": {
    "prefix": "rnfc",
    "body": [
      "import React from 'react';",
      "import { View } from 'react-native';",
      "",
      "// import { Container } from './styles';",
      "",
      "const ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}}: React.FC = () => {",
      "  return <View />;",
      "}",
      "",
      "export default ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}};"
    ],
    "description": "Create React Native TypeScript Functional Component"
  }	
}


================================================
FILE: snippets/snippets.json
================================================
{
  "styles": {
    "prefix": "styled-react-native",
    "body": [
      "import styled from 'styled-components/native';",
      "",
      "export const ${1:Container} = styled.${2:View}`",
      "  ${3}",
      "`;",
      ""
    ],
    "description": "Create React Native Styled Components file"
  },

  "componentFunctionalTypescript": {
    "prefix": "rnfc",
    "body": [
      "import React from 'react';",
      "import { View } from 'react-native';",
      "",
      "// import { Container } from './styles';",
      "",
      "const ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}} = () => {",
      "  return <View />;",
      "}",
      "",
      "export default ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}};"
    ],
    "description": "Create React Native Functional Component"
  }	
}
Download .txt
gitextract_1e4wdvhb/

├── .gitignore
├── .travis.yml
├── LICENSE
├── README.md
├── package.json
└── snippets/
    ├── snippets-ts.json
    └── snippets.json
Condensed preview — 7 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (9K chars).
[
  {
    "path": ".gitignore",
    "chars": 41,
    "preview": "RocketseatReactNative-*.vsix\nnode_modules"
  },
  {
    "path": ".travis.yml",
    "chars": 197,
    "preview": "language: node_js\n\nnode_js:\n  - '8'\n\nbranches:\n  only:\n    - master\n\ncache:\n  yarn: true\n  \nbefore_publish:\n  - yarn glo"
  },
  {
    "path": "LICENSE",
    "chars": 1071,
    "preview": "MIT License\n\nCopyright (c) 2019 Claudio Junior\n\nPermission is hereby granted, free of charge, to any person obtaining a "
  },
  {
    "path": "README.md",
    "chars": 3963,
    "preview": "<!--\n*** Obrigado por estar vendo o nosso README. Se você tiver alguma sugestão\n*** que possa melhorá-lo ainda mais dê u"
  },
  {
    "path": "package.json",
    "chars": 1018,
    "preview": "{\n  \"name\": \"rocketseatreactnative\",\n  \"description\": \"React Native snippets created by Rocketseat.\",\n  \"version\": \"3.0."
  },
  {
    "path": "snippets/snippets-ts.json",
    "chars": 836,
    "preview": "{\n  \"styles\": {\n    \"prefix\": \"styled-react-native\",\n    \"body\": [\n      \"import styled from 'styled-components/native';"
  },
  {
    "path": "snippets/snippets.json",
    "chars": 815,
    "preview": "{\n  \"styles\": {\n    \"prefix\": \"styled-react-native\",\n    \"body\": [\n      \"import styled from 'styled-components/native';"
  }
]

About this extraction

This page contains the full source code of the Rocketseat/rocketseat-vscode-react-native-snippets GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 7 files (7.8 KB), approximately 2.2k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!