This file contains hidden or 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, { useEffect, useState } from 'react'; | |
| import { View, Keyboard, TouchableOpacity, Text, StyleSheet, Image, TextInput } from 'react-native'; | |
| import MapView, { Marker, Callout } from 'react-native-maps'; | |
| import { getCurrentPositionAsync, requestPermissionsAsync } from 'expo-location'; | |
| import { MaterialIcons as Icon } from '@expo/vector-icons'; | |
| import api from '../services/api'; | |
| export default function Main({ navigation }) { | |
| const [currentRegion, setCurrentRegion] = useState(null); |
This file contains hidden or 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 from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { View } from 'react-native'; | |
| import BackButton from '~/components/BackButton'; | |
| import { | |
| Container, | |
| KeyboardContainer, | |
| FormContainer, |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 { | |
| /** |