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 ================================================ [![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)

Logo

React Native Snippets

## 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) ## 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** | ## 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 ## Licença Distribuído sob a licença MIT. Veja `LICENSE` para mais informações. ## 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 ;", "}", "", "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 ;", "}", "", "export default ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}};" ], "description": "Create React Native Functional Component" } }