index.tsx 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import {
  2. useRef
  3. } from "react";
  4. import {
  5. View
  6. } from "react-native";
  7. import stylesheet from "./stylesheet";
  8. import {
  9. type IBottomSheetRef,
  10. PageContainer,
  11. BottomSheet,
  12. Button,
  13. Text
  14. } from "ncore-ui-kit-mobile";
  15. const TestSubPage = () => {
  16. const bottomSheetRef = useRef<IBottomSheetRef>(null);
  17. return <PageContainer
  18. style={[
  19. stylesheet.container
  20. ]}
  21. >
  22. <Text>This is test sub page.</Text>
  23. <Button
  24. onPress={() => {
  25. bottomSheetRef.current?.open();
  26. }}
  27. type="success"
  28. title="Ahmet"
  29. variant="filled"
  30. />
  31. <BottomSheet
  32. isCanFullScreenOnSwipe={true}
  33. isWorkWithPortal={false}
  34. ref={bottomSheetRef}
  35. snapPoint={300}
  36. >
  37. <Button
  38. onPress={() => {
  39. }}
  40. title="Git."
  41. />
  42. <View
  43. style={{
  44. backgroundColor: "red",
  45. height: 2400
  46. }}
  47. />
  48. <Text>Deneme 123</Text>
  49. <Text>Deneme 123</Text>
  50. <Text>Deneme 123</Text>
  51. <Text>Deneme 123</Text>
  52. <Text>Deneme 123</Text>
  53. <Text>Deneme 123</Text>
  54. <Text>Deneme 123</Text>
  55. </BottomSheet>
  56. </PageContainer>;
  57. };
  58. export default TestSubPage;