This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parser": "babel-eslint", | |
"extends": "airbnb", | |
"env": { | |
"browser": true, | |
"jest": true | |
}, | |
"plugins": ["react", "jsx-a11y", "import"], | |
"rules": { | |
"react/jsx-filename-extension": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createGlobalStyle } from 'styled-components'; | |
const GlobalStyle = createGlobalStyle` | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
outline: 0; | |
} | |
*:focus { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const models = require('../app/models') | |
const Sequelize = require('sequelize') | |
const fs = require('fs') | |
const path = require('path') | |
const sequelize = new Sequelize('', '', '', { | |
host: '', | |
dialect: 'postgres' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: '#c9ccd1', | |
}, | |
searchBar: { | |
height: 54, | |
backgroundColor: '#3b5998', | |
}, | |
content: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |