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
View index.js
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import BackButton from '~/components/BackButton';
import {
Container,
KeyboardContainer,
FormContainer,
View BurguerMenu.js
import React, { PureComponent, Fragment } from 'react';
import { ScrollView, TouchableOpacity, Text } from 'react-native';
import { DrawerItems, SafeAreaView, withNavigation } from 'react-navigation';
import Icon from 'react-native-vector-icons/Ionicons';
import styles from './styles';
@csorlandi
csorlandi / .eslintrc
Created Jun 25, 2019 — forked from lcnogueira/.eslintrc
Configuração simples para usar o eslint + import absoluto no create-react-app v3 seguindo as configurações da rocketseat
View .eslintrc
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"jest": true
},
"plugins": ["react", "jsx-a11y", "import"],
"rules": {
"react/jsx-filename-extension": [
View global.js
import { createGlobalStyle } from 'styled-components';
const GlobalStyle = createGlobalStyle`
* {
margin: 0;
padding: 0;
box-sizing: border-box;
outline: 0;
}
*:focus {
View Footer.js
View sequelize-migration-generator.js
const models = require('../app/models')
const Sequelize = require('sequelize')
const fs = require('fs')
const path = require('path')
const sequelize = new Sequelize('', '', '', {
host: '',
dialect: 'postgres'
})
View index.js
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import {
View, Text, Image, TouchableOpacity, AsyncStorage,
} from 'react-native';
import styles from './styles';
export default class Main extends Component {
View eslint_rules.js
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
module.exports = {
View NewMainActivity.java
package com.englishapp;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.ReactRootView;
import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
public class MainActivity extends ReactActivity {
/**
View reactotron
import {NativeModules} from 'react-native';
import Reactotron from 'reactotron-react-native';
if (__DEV__) {
const scriptURL = NativeModules.SourceCode.scriptURL;
scriptHostname = scriptURL.split('://')[1].split(':')[0];
const tron = Reactotron
.configure({host: scriptHostname})
.connect();
You can’t perform that action at this time.