Skip to content

Instantly share code, notes, and snippets.

@jsoneaday
Created January 15, 2020 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsoneaday/870a73d3a768f6c8cce6c1f4deaa0d19 to your computer and use it in GitHub Desktop.
Save jsoneaday/870a73d3a768f6c8cce6c1f4deaa0d19 to your computer and use it in GitHub Desktop.
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