|
@@ -1,4 +1,5 @@
|
|
|
import {
|
|
import {
|
|
|
|
|
+ Fragment,
|
|
|
useState,
|
|
useState,
|
|
|
useRef
|
|
useRef
|
|
|
} from "react";
|
|
} from "react";
|
|
@@ -8,6 +9,7 @@ import {
|
|
|
import stylesheet from "./stylesheet";
|
|
import stylesheet from "./stylesheet";
|
|
|
import {
|
|
import {
|
|
|
NCoreUIKitBottomSheet,
|
|
NCoreUIKitBottomSheet,
|
|
|
|
|
+ NotificationIndicator,
|
|
|
getNCoreUIKitVersion,
|
|
getNCoreUIKitVersion,
|
|
|
type IBottomSheetRef,
|
|
type IBottomSheetRef,
|
|
|
NCoreUIKitSnackBar,
|
|
NCoreUIKitSnackBar,
|
|
@@ -26,7 +28,7 @@ import {
|
|
|
Dialog,
|
|
Dialog,
|
|
|
Switch,
|
|
Switch,
|
|
|
Text,
|
|
Text,
|
|
|
- NotificationIndicator
|
|
|
|
|
|
|
+ MarkdownViewer
|
|
|
} from "ncore-ui-kit-mobile";
|
|
} from "ncore-ui-kit-mobile";
|
|
|
import {
|
|
import {
|
|
|
useNavigation
|
|
useNavigation
|
|
@@ -232,13 +234,150 @@ const Home = () => {
|
|
|
scrollViewStyle={stylesheet.container}
|
|
scrollViewStyle={stylesheet.container}
|
|
|
scrollViewProps={{
|
|
scrollViewProps={{
|
|
|
contentContainerStyle: {
|
|
contentContainerStyle: {
|
|
|
- backgroundColor: colors.content.container.default
|
|
|
|
|
|
|
+ backgroundColor: colors.content.container.default,
|
|
|
|
|
+ ...stylesheet.contentContainer
|
|
|
}
|
|
}
|
|
|
}}
|
|
}}
|
|
|
|
|
+ renderOverlays={() => {
|
|
|
|
|
+ return <Fragment>
|
|
|
|
|
+ <Dialog
|
|
|
|
|
+ isVisible={isDialogActive}
|
|
|
|
|
+ content="etgweı09gı9w0eg"
|
|
|
|
|
+ title="Merhaba Dünya!"
|
|
|
|
|
+ contentJustify="centered"
|
|
|
|
|
+ modalProps={{
|
|
|
|
|
+ isWorkWithPortal: false
|
|
|
|
|
+ }}
|
|
|
|
|
+ onOverlayPress={({
|
|
|
|
|
+ closeAnimation
|
|
|
|
|
+ }) => {
|
|
|
|
|
+ closeAnimation(() => setIsDialogActive(false));
|
|
|
|
|
+ }}
|
|
|
|
|
+ variant="yes-no"
|
|
|
|
|
+ secondaryButtonProps={{
|
|
|
|
|
+ title: "sdfgsdg",
|
|
|
|
|
+ onPress: () => {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }}
|
|
|
|
|
+ primaryButtonProps={{
|
|
|
|
|
+ onPress: ({
|
|
|
|
|
+ closeAnimation
|
|
|
|
|
+ }) => {
|
|
|
|
|
+ closeAnimation(() => setIsDialogActive(false));
|
|
|
|
|
+ }
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
|
|
+ <BottomSheet
|
|
|
|
|
+ ref={bottomSheetRef}
|
|
|
|
|
+ renderHeader={() => {
|
|
|
|
|
+ return <View
|
|
|
|
|
+ style={[
|
|
|
|
|
+ {
|
|
|
|
|
+ backgroundColor: "blue",
|
|
|
|
|
+ padding: 20
|
|
|
|
|
+ }
|
|
|
|
|
+ ]}
|
|
|
|
|
+ >
|
|
|
|
|
+ <Text>Burası header.</Text>
|
|
|
|
|
+ </View>;
|
|
|
|
|
+ }}
|
|
|
|
|
+ isCanFullScreenOnSwipe={true}
|
|
|
|
|
+ isWorkWithPortal={false}
|
|
|
|
|
+ snapPoint={300}
|
|
|
|
|
+ key="ahmet"
|
|
|
|
|
+ >
|
|
|
|
|
+ <Button
|
|
|
|
|
+ title="Open Toast"
|
|
|
|
|
+ variant="filled"
|
|
|
|
|
+ type="warning"
|
|
|
|
|
+ onPress={() => {
|
|
|
|
|
+ NCoreUIKitToast.open({
|
|
|
|
|
+ title: "sdgfsdgsdg",
|
|
|
|
|
+ type: "danger"
|
|
|
|
|
+ });
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
|
|
+ <Button
|
|
|
|
|
+ onPress={() => {
|
|
|
|
|
+ navigation.navigate("TestSubPage");
|
|
|
|
|
+ }}
|
|
|
|
|
+ title="Git."
|
|
|
|
|
+ />
|
|
|
|
|
+ {[
|
|
|
|
|
+ 0,
|
|
|
|
|
+ 1,
|
|
|
|
|
+ 2,
|
|
|
|
|
+ 3,
|
|
|
|
|
+ 4,
|
|
|
|
|
+ 5,
|
|
|
|
|
+ 6,
|
|
|
|
|
+ 7,
|
|
|
|
|
+ 8,
|
|
|
|
|
+ 9,
|
|
|
|
|
+ 10,
|
|
|
|
|
+ 11,
|
|
|
|
|
+ 12,
|
|
|
|
|
+ 13,
|
|
|
|
|
+ 14,
|
|
|
|
|
+ 15,
|
|
|
|
|
+ 16,
|
|
|
|
|
+ 17,
|
|
|
|
|
+ 18,
|
|
|
|
|
+ 19,
|
|
|
|
|
+ 20,
|
|
|
|
|
+ 21,
|
|
|
|
|
+ 22,
|
|
|
|
|
+ 23,
|
|
|
|
|
+ 24,
|
|
|
|
|
+ 25,
|
|
|
|
|
+ 26,
|
|
|
|
|
+ 27,
|
|
|
|
|
+ 28,
|
|
|
|
|
+ 29,
|
|
|
|
|
+ 30,
|
|
|
|
|
+ 31,
|
|
|
|
|
+ 32,
|
|
|
|
|
+ 33,
|
|
|
|
|
+ 34,
|
|
|
|
|
+ 35
|
|
|
|
|
+ ].map((it) => {
|
|
|
|
|
+ return <View
|
|
|
|
|
+ key={`fds-${it}`}
|
|
|
|
|
+ style={{
|
|
|
|
|
+ backgroundColor: `rgb(${it * 10}, ${it > 30 ? it * 5 : "0"}, ${it > 20 ? it * 4 : "0"})`,
|
|
|
|
|
+ height: 150
|
|
|
|
|
+ }}
|
|
|
|
|
+ />;
|
|
|
|
|
+ })}
|
|
|
|
|
+ <Text>Deneme 123</Text>
|
|
|
|
|
+ <Text>Deneme 123</Text>
|
|
|
|
|
+ <Text>Deneme 123</Text>
|
|
|
|
|
+ <Text>Deneme 123</Text>
|
|
|
|
|
+ <Text>Deneme 123</Text>
|
|
|
|
|
+ <Text>Deneme 123</Text>
|
|
|
|
|
+ <Text>Deneme 123</Text>
|
|
|
|
|
+ <Text>Deneme 123</Text>
|
|
|
|
|
+ </BottomSheet>
|
|
|
|
|
+ </Fragment>;
|
|
|
|
|
+ }}
|
|
|
>
|
|
>
|
|
|
|
|
+ <MarkdownViewer
|
|
|
|
|
+ content={`
|
|
|
|
|
+# Merhaba Furkan!.
|
|
|
|
|
+Nabersin ?
|
|
|
|
|
+## Deneme title 2
|
|
|
|
|
+iyisindir **umarım.**
|
|
|
|
|
+
|
|
|
|
|
+* Merhaba madde1.
|
|
|
|
|
+- Deneme madde2.
|
|
|
|
|
+
|
|
|
|
|
+[Alt text için deneme](https://static.vecteezy.com/system/resources/thumbnails/060/843/811/small/close-up-of-raindrops-on-leaves-hd-background-luxury-hd-wallpaper-image-trendy-background-illustration-free-photo.jpg)
|
|
|
|
|
+ `}
|
|
|
|
|
+ />
|
|
|
<NotificationIndicator
|
|
<NotificationIndicator
|
|
|
type="danger"
|
|
type="danger"
|
|
|
- title={153}
|
|
|
|
|
|
|
+ title={53}
|
|
|
>
|
|
>
|
|
|
<Button
|
|
<Button
|
|
|
size="small"
|
|
size="small"
|
|
@@ -315,6 +454,7 @@ const Home = () => {
|
|
|
hintText="Test deneme"
|
|
hintText="Test deneme"
|
|
|
isShowSubTitle={true}
|
|
isShowSubTitle={true}
|
|
|
isMultipleSelect={true}
|
|
isMultipleSelect={true}
|
|
|
|
|
+ isWorkWithRealtime={false}
|
|
|
maxChoice={-1}
|
|
maxChoice={-1}
|
|
|
minChoice={0}
|
|
minChoice={0}
|
|
|
initialSelectedItems={[{
|
|
initialSelectedItems={[{
|
|
@@ -339,6 +479,7 @@ const Home = () => {
|
|
|
navigation.navigate("TestSubPage");
|
|
navigation.navigate("TestSubPage");
|
|
|
}}
|
|
}}
|
|
|
title="Open Test Sub Page"
|
|
title="Open Test Sub Page"
|
|
|
|
|
+ isDisabled={true}
|
|
|
variant="filled"
|
|
variant="filled"
|
|
|
spreadBehaviour="stretch"
|
|
spreadBehaviour="stretch"
|
|
|
/>
|
|
/>
|
|
@@ -434,123 +575,6 @@ const Home = () => {
|
|
|
});
|
|
});
|
|
|
}}
|
|
}}
|
|
|
/>
|
|
/>
|
|
|
- <Dialog
|
|
|
|
|
- isVisible={isDialogActive}
|
|
|
|
|
- content="etgweı09gı9w0eg"
|
|
|
|
|
- title="Merhaba Dünya!"
|
|
|
|
|
- modalProps={{
|
|
|
|
|
- isWorkWithPortal: false
|
|
|
|
|
- }}
|
|
|
|
|
- onOverlayPress={({
|
|
|
|
|
- closeAnimation
|
|
|
|
|
- }) => {
|
|
|
|
|
- closeAnimation(() => setIsDialogActive(false));
|
|
|
|
|
- }}
|
|
|
|
|
- variant="info"
|
|
|
|
|
- secondaryButtonProps={{
|
|
|
|
|
- title: "sdfgsdg",
|
|
|
|
|
- onPress: () => {
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- }}
|
|
|
|
|
- primaryButtonProps={{
|
|
|
|
|
- onPress: ({
|
|
|
|
|
- closeAnimation
|
|
|
|
|
- }) => {
|
|
|
|
|
- closeAnimation(() => setIsDialogActive(false));
|
|
|
|
|
- }
|
|
|
|
|
- }}
|
|
|
|
|
- />
|
|
|
|
|
- <BottomSheet
|
|
|
|
|
- ref={bottomSheetRef}
|
|
|
|
|
- renderHeader={() => {
|
|
|
|
|
- return <View
|
|
|
|
|
- style={[
|
|
|
|
|
- {
|
|
|
|
|
- backgroundColor: "blue",
|
|
|
|
|
- padding: 20
|
|
|
|
|
- }
|
|
|
|
|
- ]}
|
|
|
|
|
- >
|
|
|
|
|
- <Text>Burası header.</Text>
|
|
|
|
|
- </View>;
|
|
|
|
|
- }}
|
|
|
|
|
- isCanFullScreenOnSwipe={true}
|
|
|
|
|
- snapPoint={300}
|
|
|
|
|
- key="ahmet"
|
|
|
|
|
- >
|
|
|
|
|
- <Button
|
|
|
|
|
- title="Open Toast"
|
|
|
|
|
- variant="filled"
|
|
|
|
|
- type="warning"
|
|
|
|
|
- onPress={() => {
|
|
|
|
|
- NCoreUIKitToast.open({
|
|
|
|
|
- title: "sdgfsdgsdg",
|
|
|
|
|
- type: "danger"
|
|
|
|
|
- });
|
|
|
|
|
- }}
|
|
|
|
|
- />
|
|
|
|
|
- <Button
|
|
|
|
|
- onPress={() => {
|
|
|
|
|
- navigation.navigate("TestSubPage");
|
|
|
|
|
- }}
|
|
|
|
|
- title="Git."
|
|
|
|
|
- />
|
|
|
|
|
- {[
|
|
|
|
|
- 0,
|
|
|
|
|
- 1,
|
|
|
|
|
- 2,
|
|
|
|
|
- 3,
|
|
|
|
|
- 4,
|
|
|
|
|
- 5,
|
|
|
|
|
- 6,
|
|
|
|
|
- 7,
|
|
|
|
|
- 8,
|
|
|
|
|
- 9,
|
|
|
|
|
- 10,
|
|
|
|
|
- 11,
|
|
|
|
|
- 12,
|
|
|
|
|
- 13,
|
|
|
|
|
- 14,
|
|
|
|
|
- 15,
|
|
|
|
|
- 16,
|
|
|
|
|
- 17,
|
|
|
|
|
- 18,
|
|
|
|
|
- 19,
|
|
|
|
|
- 20,
|
|
|
|
|
- 21,
|
|
|
|
|
- 22,
|
|
|
|
|
- 23,
|
|
|
|
|
- 24,
|
|
|
|
|
- 25,
|
|
|
|
|
- 26,
|
|
|
|
|
- 27,
|
|
|
|
|
- 28,
|
|
|
|
|
- 29,
|
|
|
|
|
- 30,
|
|
|
|
|
- 31,
|
|
|
|
|
- 32,
|
|
|
|
|
- 33,
|
|
|
|
|
- 34,
|
|
|
|
|
- 35
|
|
|
|
|
- ].map((it) => {
|
|
|
|
|
- return <View
|
|
|
|
|
- key={`fds-${it}`}
|
|
|
|
|
- style={{
|
|
|
|
|
- backgroundColor: `rgb(${it * 10}, ${it > 30 ? it * 5 : "0"}, ${it > 20 ? it * 4 : "0"})`,
|
|
|
|
|
- height: 150
|
|
|
|
|
- }}
|
|
|
|
|
- />;
|
|
|
|
|
- })}
|
|
|
|
|
- <Text>Deneme 123</Text>
|
|
|
|
|
- <Text>Deneme 123</Text>
|
|
|
|
|
- <Text>Deneme 123</Text>
|
|
|
|
|
- <Text>Deneme 123</Text>
|
|
|
|
|
- <Text>Deneme 123</Text>
|
|
|
|
|
- <Text>Deneme 123</Text>
|
|
|
|
|
- <Text>Deneme 123</Text>
|
|
|
|
|
- <Text>Deneme 123</Text>
|
|
|
|
|
- </BottomSheet>
|
|
|
|
|
</PageContainer>;
|
|
</PageContainer>;
|
|
|
};
|
|
};
|
|
|
export default Home;
|
|
export default Home;
|