Skip to content

Instantly share code, notes, and snippets.

Claudio Orlandi csorlandi

Block or report user

Report or block csorlandi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
csorlandi /
Created Nov 27, 2017 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.




When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
csorlandi / VS Code Snippets
Created Feb 13, 2018
Lista de Snippets para React Native para se adicionar no VS Code
View VS Code Snippets
"apisauce": {
"prefix": "api",
"body": [
"import { create } from 'apisauce';",
"const api = create({",
" baseURL: '${1:http://localhost:3000}',",
" headers: {",
" Accept: 'application/vnd.github.v3+json',",
View installing react-native-camera
// Usando Yarn
yarn add react-native-camera
// Usando NPM
// npm install react-native-camera
View info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>Your message to user when the camera is accessed for the first time</string>
<string>Your message to user when the photo library is accessed for the first time</string>
View build.gradle
buildscript {
repositories {
google() // Linha Adicionada
dependencies {
// Versão modificada de 2.2.3 para 3.1.0
classpath ''
View build.gradle
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
View initial-app.js
import React, { Component } from 'react';
import { View } from 'react-native';
export default class App extends Component {
render() {
return (
<View style={styles.container}>
View rn-camera.js
ref={camera => { = camera }}
style = {styles.preview}
permissionDialogTitle={'Permission to use camera'}
permissionDialogMessage={'We need your permission to use your camera phone'}
You can’t perform that action at this time.