Created
January 15, 2020 12:14
-
-
Save jsoneaday/870a73d3a768f6c8cce6c1f4deaa0d19 to your computer and use it in GitHub Desktop.
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, { useEffect } from "react"; | |
import { | |
IonContent, | |
IonGrid, | |
IonRow, | |
IonCol, | |
IonPage, | |
IonHeader, | |
IonToolbar, | |
IonTitle, | |
IonText | |
} from "@ionic/react"; | |
import { useStorage } from "@ionic/react-hooks/storage"; | |
const Photos: React.FC = () => { | |
const { get, set } = useStorage(); | |
useEffect(() => { | |
get("imagePaths").then(imgPaths => { | |
console.log(imgPaths); | |
}); | |
}, [get]); | |
return ( | |
<IonPage> | |
<IonHeader> | |
<IonToolbar> | |
<IonTitle>Photos</IonTitle> | |
</IonToolbar> | |
</IonHeader> | |
<IonContent> | |
<IonGrid> | |
<IonRow> | |
<IonCol size-md="6" offset-md="3" className="ion-text-center"> | |
<IonText>test</IonText> | |
</IonCol> | |
</IonRow> | |
</IonGrid> | |
</IonContent> | |
</IonPage> | |
); | |
}; | |
export default Photos; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment