Rename JSX to JS.

This commit is contained in:
Patrick Fic
2022-01-12 14:22:13 -08:00
parent 37bede677a
commit d019f35d4a
35 changed files with 566 additions and 454 deletions

View File

@@ -0,0 +1,33 @@
import Constants from "expo-constants";
import React from "react";
import { useTranslation } from "react-i18next";
import { Button, View, Text } from "react-native";
import { Title } from "react-native-paper";
import { purgeStoredState } from "redux-persist";
import SignOutButton from "../sign-out-button/sign-out-button.component";
import * as Updates from "expo-updates";
export default function ScreenSettingsComponent() {
const { t } = useTranslation();
return (
<View
style={{
flex: 1,
display: "flex",
alignItems: "center",
flexDirection: "column",
}}
>
<Title>
{t("settings.labels.version", {
number: `${Constants.manifest.version}-${Constants.manifest.extra.expover}`,
})}
</Title>
<Text>{Updates.releaseChannel}</Text>
<SignOutButton />
<Button title="Purge State" onPress={() => purgeStoredState()} />
</View>
);
}