import { is } from "ramda" ; import Reactotron from "reactotron-react-native" ; import { Action } from "redux" ; import { SagaIterator } from "redux-saga" ; import { put , select } from "redux-saga/effects" ; import { GithubAction , GithubActions } from "../../Reducers/GithubReducers" ; import { StartupActions } from "../../Reducers/StartupReducers" ; export const selectAvatar = ( state ) => state . github . avatar ; export function * startup ( action ? ) { if ( __DEV__ ) { Reactotron . log ( "Hello, I'm an example of how to log via Reactotron." ) ; Reactotron . log ( action ) ; Reactotron . log ( { message : "pass objects for better logging" , someGeneratorFunction : selectAvatar , } ) ; const subObject = { a : 1 , b : [ 1 , 2 , 3 ] , c : true , circularDependency : undefined as any } ; subObject . circularDependency = subObject ; Reactotron . display ( { name : "🔥 IGNITE 🔥" , preview : "You should totally expand this" , value : { "💃" : "Welcome to the future!" , subObject , "someInlineFunction" : ( ) => true , "someGeneratorFunction" : startup , "someNormalFunction" : selectAvatar , } , } ) ; } const avatar = yield select ( selectAvatar ) ; if ( ! is ( String , avatar ) ) { yield put ( GithubActions . userRequest ( { username : "ascorbic" } ) ) ; } }