|
@@ -2,12 +2,15 @@ import {
|
|
|
useLayoutEffect
|
|
useLayoutEffect
|
|
|
} from "react";
|
|
} from "react";
|
|
|
import {
|
|
import {
|
|
|
- Image
|
|
|
|
|
|
|
+ Image,
|
|
|
|
|
+ View
|
|
|
} from "react-native";
|
|
} from "react-native";
|
|
|
import stylesheet from "./stylesheet";
|
|
import stylesheet from "./stylesheet";
|
|
|
import {
|
|
import {
|
|
|
|
|
+ NCoreUIKitLocalize,
|
|
|
NCoreUIKitTheme,
|
|
NCoreUIKitTheme,
|
|
|
PageContainer,
|
|
PageContainer,
|
|
|
|
|
+ RowCard,
|
|
|
Text
|
|
Text
|
|
|
} from "ncore-ui-kit";
|
|
} from "ncore-ui-kit";
|
|
|
import {
|
|
import {
|
|
@@ -17,12 +20,21 @@ import type RootStackParamList from "../../navigation/type";
|
|
|
import type {
|
|
import type {
|
|
|
NativeStackNavigationProp
|
|
NativeStackNavigationProp
|
|
|
} from "@react-navigation/native-stack";
|
|
} from "@react-navigation/native-stack";
|
|
|
|
|
+import {
|
|
|
|
|
+ ChevronRight
|
|
|
|
|
+} from "lucide-react-native";
|
|
|
|
|
+import packageJSON from "../../../../package.json";
|
|
|
|
|
|
|
|
const Home = () => {
|
|
const Home = () => {
|
|
|
const {
|
|
const {
|
|
|
- colors
|
|
|
|
|
|
|
+ colors,
|
|
|
|
|
+ spaces
|
|
|
} = NCoreUIKitTheme.useContext();
|
|
} = NCoreUIKitTheme.useContext();
|
|
|
|
|
|
|
|
|
|
+ const {
|
|
|
|
|
+ localize
|
|
|
|
|
+ } = NCoreUIKitLocalize.useContext();
|
|
|
|
|
+
|
|
|
const navigation = useNavigation<NativeStackNavigationProp<RootStackParamList>>();
|
|
const navigation = useNavigation<NativeStackNavigationProp<RootStackParamList>>();
|
|
|
|
|
|
|
|
useLayoutEffect(() => {
|
|
useLayoutEffect(() => {
|
|
@@ -43,25 +55,75 @@ const Home = () => {
|
|
|
}
|
|
}
|
|
|
}}
|
|
}}
|
|
|
>
|
|
>
|
|
|
- <Image
|
|
|
|
|
- source={{
|
|
|
|
|
- uri: "https://ncore.nibgat.space/assets/images/ncorelogo.png"
|
|
|
|
|
- }}
|
|
|
|
|
|
|
+ <View
|
|
|
style={{
|
|
style={{
|
|
|
- height: 300,
|
|
|
|
|
- width: 300
|
|
|
|
|
|
|
+ justifyContent: "center",
|
|
|
|
|
+ alignItems: "center",
|
|
|
|
|
+ maxWidth: 850,
|
|
|
|
|
+ width: "100%"
|
|
|
}}
|
|
}}
|
|
|
- />
|
|
|
|
|
- <Text
|
|
|
|
|
- variant="displayMediumSize"
|
|
|
|
|
- >
|
|
|
|
|
- NCore | Design System
|
|
|
|
|
- </Text>
|
|
|
|
|
- <Text
|
|
|
|
|
- variant="headlineLargeSize"
|
|
|
|
|
>
|
|
>
|
|
|
- UI Kit - Library
|
|
|
|
|
- </Text>
|
|
|
|
|
|
|
+ <Image
|
|
|
|
|
+ source={{
|
|
|
|
|
+ uri: "https://ncore.nibgat.space/assets/images/ncorelogo.png"
|
|
|
|
|
+ }}
|
|
|
|
|
+ style={{
|
|
|
|
|
+ height: 300,
|
|
|
|
|
+ width: 300
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
|
|
+ <Text
|
|
|
|
|
+ variant="displayMediumSize"
|
|
|
|
|
+ style={{
|
|
|
|
|
+ marginBottom: spaces.spacingMd,
|
|
|
|
|
+ textAlign: "center"
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
|
|
+ {localize("ncore-design-system")}
|
|
|
|
|
+ </Text>
|
|
|
|
|
+ <Text
|
|
|
|
|
+ variant="headlineLargeSize"
|
|
|
|
|
+ style={{
|
|
|
|
|
+ marginBottom: spaces.spacingLg,
|
|
|
|
|
+ textAlign: "center"
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
|
|
+ {localize("ui-kit-library")}
|
|
|
|
|
+ </Text>
|
|
|
|
|
+ <Text
|
|
|
|
|
+ variant="bodyLargeSize"
|
|
|
|
|
+ style={{
|
|
|
|
|
+ marginBottom: spaces.spacingMd,
|
|
|
|
|
+ textAlign: "center"
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
|
|
+ {localize("ncore-about")}
|
|
|
|
|
+ </Text>
|
|
|
|
|
+ <Text
|
|
|
|
|
+ color="low"
|
|
|
|
|
+ style={{
|
|
|
|
|
+ marginBottom: spaces.spacingMd
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
|
|
+ {localize("version")}: {packageJSON.version}
|
|
|
|
|
+ </Text>
|
|
|
|
|
+ <RowCard
|
|
|
|
|
+ title={localize("text")}
|
|
|
|
|
+ rightIcon={({
|
|
|
|
|
+ customColor,
|
|
|
|
|
+ color,
|
|
|
|
|
+ size
|
|
|
|
|
+ }) => {
|
|
|
|
|
+ return <ChevronRight
|
|
|
|
|
+ color={customColor ? customColor : colors.content.icon[color]}
|
|
|
|
|
+ size={size}
|
|
|
|
|
+ />;
|
|
|
|
|
+ }}
|
|
|
|
|
+ onPress={() => {
|
|
|
|
|
+ navigation.navigate("TextPage");
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
|
|
+ </View>
|
|
|
</PageContainer>;
|
|
</PageContainer>;
|
|
|
};
|
|
};
|
|
|
export default Home;
|
|
export default Home;
|