This file contains hidden or 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 from 'react'; | |
import { StyleSheet, Text, View } from 'react-native'; | |
import Centrifuge from 'centrifuge'; | |
export default class App extends React.Component { | |
componentDidMount() { | |
console.log("componentDidMount") | |
var timestamp = Math.floor(Date.now() / 1000); | |
var centrifuge = new Centrifuge({ |
This file contains hidden or 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
{ | |
"labels": ["January", "February"], | |
"datasets": [{ | |
"label": "Data One", | |
"backgroundColor": "#f87979", | |
"data": [40, 20] | |
}] | |
} |
This file contains hidden or 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 {createSlice} from "@reduxjs/toolkit"; | |
import {asyncThunk, rx, asyncAction} from "./thunks"; | |
import {identity} from "./identity"; | |
export const fetchAccount = asyncThunk( | |
"account", | |
"fetchAccount", | |
async (id, state) => { | |
return identity.currentUser().attributes(); | |
}); |
OlderNewer