Let's say you have 2 models. App/Models/User and App/Models/Admin
Inside your config/auth.js
, you can create multiple authenticators for admin and user.
{
user: {
serializer: 'lucid',
model: 'App/Models/User',
scheme: 'session',
apply plugin: "com.android.application" | |
import com.android.build.OutputFile | |
project.ext.react = [ | |
entryFile: "index.js" | |
] | |
apply from: "../../node_modules/react-native/react.gradle" |
// Insira isto no index.js ou no App.js | |
import {YellowBox} from 'react-native'; | |
YellowBox.ignoreWarnings(['Warning: Async Storage has been extracted from react-native core']); // <- insert the warning text here you wish to hide. |
import React from 'react'; | |
import '~/config/reactotron'; | |
import { Provider } from 'react-redux'; | |
import { PersistGate } from 'redux-persist/integration/react'; | |
import { store, persistor } from './store'; | |
import Routes from '~/config/routes'; |
{ | |
"workbench.colorCustomizations": { | |
"titleBar.activeBackground": "#811519", | |
"titleBar.activeForeground": "#ffffff", | |
"titleBar.inactiveBackground": "#811519", | |
"titleBar.inactiveForeground": "#cccccc", | |
"sideBar.background": "#363636", | |
"activityBar.background": "#000", | |
"activityBar.foreground": "#00ff00", | |
"activityBar.border": "#ffffff", |
{ | |
"recommendations": [ | |
"dbaeumer.vscode-eslint", | |
"esbenp.prettier-vscode", | |
"dzannotti.vscode-babel-coloring", | |
"naumovs.color-highlight", | |
"anseki.vscode-color", | |
"editorconfig.editorconfig", | |
"esbenp.prettier-vscode", | |
"rocketseat.rocketseatreactnative", |
# React & Typescript | |
## Iniciando um novo projeto | |
https://facebook.github.io/create-react-app/docs/adding-typescript | |
## Migrando um projeto existente | |
https://vincenttunru.com/migrate-create-react-app-typescript-to-create-react-app/ |
Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.
The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.
For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.
import React, { Component, Fragment } from 'react'; | |
import GlobalStyle from './styles/GlobalStyles'; | |
import Routes from './routes'; | |
class App extends Component { | |
state = {}; | |
render() { | |
return ( | |
<Fragment> |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |