I hereby claim:
* I am wmcbain on github. * I am wmcbain (https://keybase.io/wmcbain) on keybase. * I have a public key ASBFVUH8JRFBfk8vc0h1TJgmBvyxqOE7M9tddtysFeNeQwo
To claim this, I am signing this object:
| const authMachine = Machine({ | |
| id: 'auth_machine', | |
| initial: 'authIsLoading', | |
| context: { | |
| sessionToken: null, | |
| }, | |
| states: { | |
| authIsLoading: { | |
| on: { | |
| LOGGED_IN: 'isLoggedIn', |
| const fileMachine = Machine({ | |
| id: 'fileMachine', | |
| initial: 'checkPackageJsonChanged', | |
| states: { | |
| checkPackageJsonChanged: { | |
| entry: 'checkPackageJsonChanged', | |
| on: { | |
| PACKAGE_JSON_CHANGED: 'checkUniversalPackagesChanged', | |
| PACKAGE_JSON_NOT_CHANGED: 'exit' |
| const authMachine = Machine({ | |
| id: 'auth_machine', | |
| initial: 'authIsLoading', | |
| context: { | |
| sessionToken: null, | |
| }, | |
| states: { | |
| authIsLoading: { | |
| on: { | |
| LOGGED_IN: 'isLoggedIn', |
| const authMachine = Machine({ | |
| id: 'auth_machine', | |
| initial: 'authIsLoading', | |
| context: { | |
| sessionToken: null, | |
| }, | |
| states: { | |
| authIsLoading: { | |
| on: { | |
| LOGGED_IN: 'isLoggedIn', |
| const authMachine = Machine({ | |
| id: 'auth_machine', | |
| initial: 'authIsLoading', | |
| context: { | |
| sessionToken: null, | |
| }, | |
| states: { | |
| // HomeScreen.tsx | |
| authIsLoading: { | |
| on: { |
| const authMachine = Machine({ | |
| id: 'auth_machine', | |
| initial: 'authIsLoading', | |
| context: { | |
| sessionToken: null, | |
| }, | |
| states: { | |
| // HomeScreen.tsx | |
| authIsLoading: { | |
| on: { |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| import { useCallback, useState } from 'react'; | |
| import { LayoutChangeEvent } from 'react-native'; | |
| export const useSize = (): [ | |
| { | |
| height: number; | |
| width: number; | |
| }, | |
| (event: LayoutChangeEvent) => void | |
| ] => { |
I hereby claim:
* I am wmcbain on github. * I am wmcbain (https://keybase.io/wmcbain) on keybase. * I have a public key ASBFVUH8JRFBfk8vc0h1TJgmBvyxqOE7M9tddtysFeNeQwo
To claim this, I am signing this object: