@nativetail/ui 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativetail/ui",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.7",
|
4
4
|
"description": "",
|
5
5
|
"main": "src/index.ts",
|
6
6
|
"scripts": {},
|
@@ -28,7 +28,8 @@
|
|
28
28
|
"dependencies": {
|
29
29
|
"@hookform/resolvers": "^3.6.0",
|
30
30
|
"@nativetail/core": "^0.0.6",
|
31
|
-
"@shopify/flash-list": "^1.7.
|
31
|
+
"@shopify/flash-list": "^1.7.1",
|
32
|
+
"@sinclair/typebox": "^0.33.7",
|
32
33
|
"countries-list": "^3.1.0",
|
33
34
|
"expo-blur": "^13.0.2",
|
34
35
|
"expo-linear-gradient": "~13.0.2",
|
@@ -61,13 +61,9 @@ export function FormBuilder<T extends z.ZodRawShape>({
|
|
61
61
|
<View className={cn("gap-4", containerClassname)}>
|
62
62
|
<View className={cn("flex-1 gap-2", inputContainerClassname)}>
|
63
63
|
{keys.map((inputKey) => {
|
64
|
-
const Input = inputs[inputKey]
|
65
|
-
type: "text",
|
66
|
-
props: {
|
67
|
-
placeholder: inputKey,
|
68
|
-
},
|
69
|
-
};
|
64
|
+
const Input = inputs[inputKey];
|
70
65
|
const Render = Input.render;
|
66
|
+
if (!Input) return null;
|
71
67
|
if (!Render) {
|
72
68
|
return (
|
73
69
|
<InputComponent
|
@@ -1,14 +1,13 @@
|
|
1
1
|
import { cn, Pressable, Text, View } from "@nativetail/core";
|
2
2
|
import { memo, useCallback, useMemo, useRef, useState } from "react";
|
3
3
|
import { Controller } from "react-hook-form";
|
4
|
-
import { FlashList
|
5
|
-
import { Iconify } from "react-native-iconify";
|
4
|
+
import { FlashList } from "react-native-actions-sheet";
|
6
5
|
import { BottomSheet, BottomSheetRef } from "../bottom-sheet";
|
7
6
|
import { Input, InputProps } from "./input";
|
8
7
|
|
9
8
|
import { countries, ICountry } from "countries-list";
|
10
|
-
import { FloatingInput } from "./floating-input";
|
11
9
|
import { ChevronDown } from "lucide-react-native";
|
10
|
+
import { FloatingInput } from "./floating-input";
|
12
11
|
type CountryType = ICountry & {
|
13
12
|
code: string;
|
14
13
|
};
|