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 remoteConfig from '@react-native-firebase/remote-config' | |
const fetchConfig = async () => { | |
await remoteConfig().setConfigSettings({ | |
isDeveloperModeEnabled: __DEV__, | |
minimumFetchInterval: 0 | |
}) | |
await remoteConfig().fetchAndActivate() | |
} |
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
1) Criar Linode "gandalf-1"; | |
2) Copiar chave SSH: | |
cat ~/.ssh/id_rsa.pub | |
3) Atualizar SO: | |
apt-get update && apt-get upgrade |
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, { useState, useEffect } from "react"; | |
import { RouteComponentProps } from "react-router-dom"; | |
import { useAuth } from "contexts/auth"; | |
interface LoginProps extends RouteComponentProps {} | |
const Login = ({ history }: LoginProps) => { | |
const auth = useAuth(); | |
// Redirect if already authenticated |