I hereby claim:
- I am koredefashokun on github.
- I am koredefashokun (https://keybase.io/koredefashokun) on keybase.
- I have a public key whose fingerprint is ECC6 A562 B6AB 6302 9010 8BA7 F3AF 4584 4529 1AF4
To claim this, I am signing this object:
const obj1 = { a: { b: "c", x: "y" } } | |
const obj2 = { a: { b: "d", e: "f" } } | |
temp = Object.assign({}, obj1, obj2) | |
Object.keys(temp).forEach(key => { | |
temp[key] = (typeof temp[key] === 'object') ? Object.assign(temp[key], obj1[key], obj2[key]) : temp[key]) | |
} | |
console.log(temp) |
I hereby claim:
To claim this, I am signing this object:
If you do this,
{children(closeAnimation)}
You can do this with the ModalPage:
<ModalPage>
{(closeAnimation) => (
{ | |
"compilerOptions": { | |
// Target latest version of ECMAScript. | |
"target": "esnext", | |
// Search under node_modules for non-relative imports. | |
"moduleResolution": "node", | |
// Process & infer types from .js files. | |
"allowJs": false, | |
// Don't emit; allow Babel to transform files. | |
"noEmit": true, |
module.exports = { | |
"parser": "@typescript-eslint/parser", | |
"plugins": [ | |
"@typescript-eslint", | |
"react", | |
"react-native", | |
"prettier" | |
], | |
"settings": { | |
"import/resolver": { |
{ | |
"editor.tabSize": 2, | |
"editor.fontFamily": "Dank Mono", | |
"editor.fontLigatures": true, | |
"workbench.colorTheme": "Atom One Dark", | |
"workbench.colorCustomizations": { | |
"statusBar.background": "#000000", | |
"panel.background": "#000000", | |
"sideBar.background": "#000000", | |
"activityBar.background": "#000000", |
import * as React from 'react'; | |
import { View, Text, TextInput, StyleSheet, Button } from 'react-native'; | |
export default class App extends React.Component { | |
state = { | |
email: '', | |
password: '', | |
isEmailValid: true, | |
isPasswordValid: true | |
}; |
// import axios from 'axios'; // (This will probably be used later. Using good ol' Fetch API for now!) | |
import { AsyncStorage } from 'react-native'; | |
// const API_URL = 'http://localhost:5500'; | |
const API_URL = 'https://trail-api.herokuapp.com'; | |
export default class Backend { | |
static logIn(username, password){ | |
return fetch(`${API_URL}/users/login`, { | |
method: 'POST', |
require('dotenv').load(); | |
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const expressValidator = require('express-validator'); | |
const config = require('./config/database'); | |
const mongoose = require('mongoose'); | |
const port = process.env.PORT || 8550; | |
const app = express(); |