@nexara/nativeflow 0.1.1 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/lib/commonjs/components/Button/Button.js +61 -47
  2. package/lib/commonjs/components/Button/Button.js.map +1 -1
  3. package/lib/commonjs/components/CheckBox/CheckBox.js +39 -29
  4. package/lib/commonjs/components/CheckBox/CheckBox.js.map +1 -1
  5. package/lib/commonjs/components/Chip/Chip.js +2 -2
  6. package/lib/commonjs/components/Chip/Chip.js.map +1 -1
  7. package/lib/commonjs/components/Dialog/Dialog.js +53 -48
  8. package/lib/commonjs/components/Dialog/Dialog.js.map +1 -1
  9. package/lib/commonjs/components/Dialog/DialogBody.js +6 -8
  10. package/lib/commonjs/components/Dialog/DialogBody.js.map +1 -1
  11. package/lib/commonjs/components/Dialog/DialogDescription.js +5 -8
  12. package/lib/commonjs/components/Dialog/DialogDescription.js.map +1 -1
  13. package/lib/commonjs/components/Dialog/DialogFoot.js +13 -13
  14. package/lib/commonjs/components/Dialog/DialogFoot.js.map +1 -1
  15. package/lib/commonjs/components/Dialog/DialogHead.js +17 -16
  16. package/lib/commonjs/components/Dialog/DialogHead.js.map +1 -1
  17. package/lib/commonjs/components/Divider/Divider.js +5 -9
  18. package/lib/commonjs/components/Divider/Divider.js.map +1 -1
  19. package/lib/commonjs/components/Grid/Grid.js +0 -1
  20. package/lib/commonjs/components/Grid/Grid.js.map +1 -1
  21. package/lib/commonjs/components/Header/Header.js.map +1 -1
  22. package/lib/commonjs/components/Icon/Icon.js +9 -5
  23. package/lib/commonjs/components/Icon/Icon.js.map +1 -1
  24. package/lib/commonjs/components/IconButton/IconButton.js +6 -3
  25. package/lib/commonjs/components/IconButton/IconButton.js.map +1 -1
  26. package/lib/commonjs/components/Link/Link.js +13 -15
  27. package/lib/commonjs/components/Link/Link.js.map +1 -1
  28. package/lib/commonjs/components/Menu/Menu.js +51 -54
  29. package/lib/commonjs/components/Menu/Menu.js.map +1 -1
  30. package/lib/commonjs/components/Menu/MenuItem.js +0 -2
  31. package/lib/commonjs/components/Menu/MenuItem.js.map +1 -1
  32. package/lib/commonjs/components/Portal/Portal.js +1 -1
  33. package/lib/commonjs/components/Portal/Portal.js.map +1 -1
  34. package/lib/commonjs/components/Progress/Progress.js +25 -15
  35. package/lib/commonjs/components/Progress/Progress.js.map +1 -1
  36. package/lib/commonjs/components/Stack/HStack.js +9 -13
  37. package/lib/commonjs/components/Stack/HStack.js.map +1 -1
  38. package/lib/commonjs/components/Stack/VStack.js +5 -6
  39. package/lib/commonjs/components/Stack/VStack.js.map +1 -1
  40. package/lib/commonjs/components/StyledComponents/StyledText.js +11 -14
  41. package/lib/commonjs/components/StyledComponents/StyledText.js.map +1 -1
  42. package/lib/commonjs/components/StyledComponents/StyledView.js +14 -14
  43. package/lib/commonjs/components/StyledComponents/StyledView.js.map +1 -1
  44. package/lib/commonjs/components/Switch/Switch.js +4 -4
  45. package/lib/commonjs/components/Switch/Switch.js.map +1 -1
  46. package/lib/commonjs/components/TouchableRipple/TouchableRipple.js +90 -103
  47. package/lib/commonjs/components/TouchableRipple/TouchableRipple.js.map +1 -1
  48. package/lib/commonjs/components/UserInput/UserInput.js +31 -34
  49. package/lib/commonjs/components/UserInput/UserInput.js.map +1 -1
  50. package/lib/commonjs/helpers/LightenColorShades.js +18 -5
  51. package/lib/commonjs/helpers/LightenColorShades.js.map +1 -1
  52. package/lib/commonjs/helpers/ResponsiveCalculations.js +30 -4
  53. package/lib/commonjs/helpers/ResponsiveCalculations.js.map +1 -1
  54. package/lib/commonjs/helpers/index.js +16 -0
  55. package/lib/commonjs/helpers/index.js.map +1 -1
  56. package/lib/commonjs/index.js +0 -7
  57. package/lib/commonjs/index.js.map +1 -1
  58. package/lib/commonjs/themes/LightTheme.js +1 -3
  59. package/lib/commonjs/themes/LightTheme.js.map +1 -1
  60. package/lib/commonjs/types/index.js +11 -0
  61. package/lib/commonjs/types/index.js.map +1 -1
  62. package/lib/commonjs/types/progress.type.js +2 -0
  63. package/lib/commonjs/types/progress.type.js.map +1 -0
  64. package/lib/module/components/Button/Button.js +62 -48
  65. package/lib/module/components/Button/Button.js.map +1 -1
  66. package/lib/module/components/CheckBox/CheckBox.js +41 -31
  67. package/lib/module/components/CheckBox/CheckBox.js.map +1 -1
  68. package/lib/module/components/Chip/Chip.js +2 -2
  69. package/lib/module/components/Chip/Chip.js.map +1 -1
  70. package/lib/module/components/Dialog/Dialog.js +53 -48
  71. package/lib/module/components/Dialog/Dialog.js.map +1 -1
  72. package/lib/module/components/Dialog/DialogBody.js +7 -9
  73. package/lib/module/components/Dialog/DialogBody.js.map +1 -1
  74. package/lib/module/components/Dialog/DialogDescription.js +6 -9
  75. package/lib/module/components/Dialog/DialogDescription.js.map +1 -1
  76. package/lib/module/components/Dialog/DialogFoot.js +13 -13
  77. package/lib/module/components/Dialog/DialogFoot.js.map +1 -1
  78. package/lib/module/components/Dialog/DialogHead.js +17 -16
  79. package/lib/module/components/Dialog/DialogHead.js.map +1 -1
  80. package/lib/module/components/Divider/Divider.js +5 -9
  81. package/lib/module/components/Divider/Divider.js.map +1 -1
  82. package/lib/module/components/Grid/Grid.js +0 -1
  83. package/lib/module/components/Grid/Grid.js.map +1 -1
  84. package/lib/module/components/Header/Header.js.map +1 -1
  85. package/lib/module/components/Icon/Icon.js +7 -4
  86. package/lib/module/components/Icon/Icon.js.map +1 -1
  87. package/lib/module/components/IconButton/IconButton.js +5 -3
  88. package/lib/module/components/IconButton/IconButton.js.map +1 -1
  89. package/lib/module/components/Link/Link.js +14 -16
  90. package/lib/module/components/Link/Link.js.map +1 -1
  91. package/lib/module/components/Menu/Menu.js +51 -54
  92. package/lib/module/components/Menu/Menu.js.map +1 -1
  93. package/lib/module/components/Menu/MenuItem.js +0 -2
  94. package/lib/module/components/Menu/MenuItem.js.map +1 -1
  95. package/lib/module/components/Portal/Portal.js +1 -1
  96. package/lib/module/components/Portal/Portal.js.map +1 -1
  97. package/lib/module/components/Progress/Progress.js +26 -16
  98. package/lib/module/components/Progress/Progress.js.map +1 -1
  99. package/lib/module/components/Stack/HStack.js +9 -13
  100. package/lib/module/components/Stack/HStack.js.map +1 -1
  101. package/lib/module/components/Stack/VStack.js +6 -7
  102. package/lib/module/components/Stack/VStack.js.map +1 -1
  103. package/lib/module/components/StyledComponents/StyledText.js +12 -15
  104. package/lib/module/components/StyledComponents/StyledText.js.map +1 -1
  105. package/lib/module/components/StyledComponents/StyledView.js +15 -15
  106. package/lib/module/components/StyledComponents/StyledView.js.map +1 -1
  107. package/lib/module/components/Switch/Switch.js +4 -4
  108. package/lib/module/components/Switch/Switch.js.map +1 -1
  109. package/lib/module/components/TouchableRipple/TouchableRipple.js +90 -96
  110. package/lib/module/components/TouchableRipple/TouchableRipple.js.map +1 -1
  111. package/lib/module/components/UserInput/UserInput.js +32 -37
  112. package/lib/module/components/UserInput/UserInput.js.map +1 -1
  113. package/lib/module/components/UserInput/UserInputV2.js.map +1 -1
  114. package/lib/module/helpers/LightenColorShades.js +18 -5
  115. package/lib/module/helpers/LightenColorShades.js.map +1 -1
  116. package/lib/module/helpers/ResponsiveCalculations.js +28 -3
  117. package/lib/module/helpers/ResponsiveCalculations.js.map +1 -1
  118. package/lib/module/helpers/index.js +1 -0
  119. package/lib/module/helpers/index.js.map +1 -1
  120. package/lib/module/index.js +5 -5
  121. package/lib/module/index.js.map +1 -2
  122. package/lib/module/themes/LightTheme.js +1 -2
  123. package/lib/module/themes/LightTheme.js.map +1 -1
  124. package/lib/module/types/index.js +1 -0
  125. package/lib/module/types/index.js.map +1 -1
  126. package/lib/module/types/progress.type.js +2 -0
  127. package/lib/module/types/progress.type.js.map +1 -0
  128. package/lib/typescript/commonjs/src/components/Button/Button.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts.map +1 -1
  130. package/lib/typescript/commonjs/src/components/Dialog/Dialog.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts.map +1 -1
  132. package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts.map +1 -1
  134. package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts.map +1 -1
  135. package/lib/typescript/commonjs/src/components/Grid/Grid.d.ts.map +1 -1
  136. package/lib/typescript/commonjs/src/components/Header/Header.d.ts +1 -0
  137. package/lib/typescript/commonjs/src/components/Header/Header.d.ts.map +1 -1
  138. package/lib/typescript/commonjs/src/components/Icon/Icon.d.ts +1 -1
  139. package/lib/typescript/commonjs/src/components/Icon/Icon.d.ts.map +1 -1
  140. package/lib/typescript/commonjs/src/components/IconButton/IconButton.d.ts +2 -2
  141. package/lib/typescript/commonjs/src/components/IconButton/IconButton.d.ts.map +1 -1
  142. package/lib/typescript/commonjs/src/components/Link/Link.d.ts +4 -0
  143. package/lib/typescript/commonjs/src/components/Link/Link.d.ts.map +1 -1
  144. package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts.map +1 -1
  145. package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts.map +1 -1
  146. package/lib/typescript/commonjs/src/components/Portal/Portal.d.ts +1 -1
  147. package/lib/typescript/commonjs/src/components/Portal/Portal.d.ts.map +1 -1
  148. package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts +1 -12
  149. package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts.map +1 -1
  150. package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts.map +1 -1
  152. package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts.map +1 -1
  153. package/lib/typescript/commonjs/src/components/StyledComponents/StyledView.d.ts.map +1 -1
  154. package/lib/typescript/commonjs/src/components/TouchableRipple/TouchableRipple.d.ts +0 -10
  155. package/lib/typescript/commonjs/src/components/TouchableRipple/TouchableRipple.d.ts.map +1 -1
  156. package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts +1 -34
  157. package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts.map +1 -1
  158. package/lib/typescript/commonjs/src/components/UserInput/UserInputV2.d.ts +1 -1
  159. package/lib/typescript/commonjs/src/components/UserInput/UserInputV2.d.ts.map +1 -1
  160. package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts +1 -1
  161. package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts.map +1 -1
  162. package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts +1 -0
  163. package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
  164. package/lib/typescript/commonjs/src/helpers/index.d.ts +1 -0
  165. package/lib/typescript/commonjs/src/helpers/index.d.ts.map +1 -1
  166. package/lib/typescript/commonjs/src/index.d.ts +0 -2
  167. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  168. package/lib/typescript/commonjs/src/themes/LightTheme.d.ts.map +1 -1
  169. package/lib/typescript/commonjs/src/types/button.type.d.ts +3 -2
  170. package/lib/typescript/commonjs/src/types/button.type.d.ts.map +1 -1
  171. package/lib/typescript/commonjs/src/types/chip.type.d.ts +1 -0
  172. package/lib/typescript/commonjs/src/types/chip.type.d.ts.map +1 -1
  173. package/lib/typescript/commonjs/src/types/dialog.type.d.ts +4 -6
  174. package/lib/typescript/commonjs/src/types/dialog.type.d.ts.map +1 -1
  175. package/lib/typescript/commonjs/src/types/index.d.ts +1 -0
  176. package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
  177. package/lib/typescript/commonjs/src/types/menu.type.d.ts +7 -2
  178. package/lib/typescript/commonjs/src/types/menu.type.d.ts.map +1 -1
  179. package/lib/typescript/commonjs/src/types/progress.type.d.ts +13 -0
  180. package/lib/typescript/commonjs/src/types/progress.type.d.ts.map +1 -0
  181. package/lib/typescript/commonjs/src/types/stack.type.d.ts +6 -4
  182. package/lib/typescript/commonjs/src/types/stack.type.d.ts.map +1 -1
  183. package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts +7 -1
  184. package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts.map +1 -1
  185. package/lib/typescript/commonjs/src/types/userInput.type.d.ts +7 -1
  186. package/lib/typescript/commonjs/src/types/userInput.type.d.ts.map +1 -1
  187. package/lib/typescript/module/src/components/Button/Button.d.ts.map +1 -1
  188. package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts.map +1 -1
  189. package/lib/typescript/module/src/components/Dialog/Dialog.d.ts.map +1 -1
  190. package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts.map +1 -1
  191. package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts.map +1 -1
  192. package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts.map +1 -1
  193. package/lib/typescript/module/src/components/Divider/Divider.d.ts.map +1 -1
  194. package/lib/typescript/module/src/components/Grid/Grid.d.ts.map +1 -1
  195. package/lib/typescript/module/src/components/Header/Header.d.ts +1 -0
  196. package/lib/typescript/module/src/components/Header/Header.d.ts.map +1 -1
  197. package/lib/typescript/module/src/components/Icon/Icon.d.ts +1 -1
  198. package/lib/typescript/module/src/components/Icon/Icon.d.ts.map +1 -1
  199. package/lib/typescript/module/src/components/IconButton/IconButton.d.ts +2 -2
  200. package/lib/typescript/module/src/components/IconButton/IconButton.d.ts.map +1 -1
  201. package/lib/typescript/module/src/components/Link/Link.d.ts +4 -0
  202. package/lib/typescript/module/src/components/Link/Link.d.ts.map +1 -1
  203. package/lib/typescript/module/src/components/Menu/Menu.d.ts.map +1 -1
  204. package/lib/typescript/module/src/components/Menu/MenuItem.d.ts.map +1 -1
  205. package/lib/typescript/module/src/components/Portal/Portal.d.ts +1 -1
  206. package/lib/typescript/module/src/components/Portal/Portal.d.ts.map +1 -1
  207. package/lib/typescript/module/src/components/Progress/Progress.d.ts +1 -12
  208. package/lib/typescript/module/src/components/Progress/Progress.d.ts.map +1 -1
  209. package/lib/typescript/module/src/components/Stack/HStack.d.ts.map +1 -1
  210. package/lib/typescript/module/src/components/Stack/VStack.d.ts.map +1 -1
  211. package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts.map +1 -1
  212. package/lib/typescript/module/src/components/StyledComponents/StyledView.d.ts.map +1 -1
  213. package/lib/typescript/module/src/components/TouchableRipple/TouchableRipple.d.ts +0 -10
  214. package/lib/typescript/module/src/components/TouchableRipple/TouchableRipple.d.ts.map +1 -1
  215. package/lib/typescript/module/src/components/UserInput/UserInput.d.ts +1 -34
  216. package/lib/typescript/module/src/components/UserInput/UserInput.d.ts.map +1 -1
  217. package/lib/typescript/module/src/components/UserInput/UserInputV2.d.ts +1 -1
  218. package/lib/typescript/module/src/components/UserInput/UserInputV2.d.ts.map +1 -1
  219. package/lib/typescript/module/src/helpers/LightenColorShades.d.ts +1 -1
  220. package/lib/typescript/module/src/helpers/LightenColorShades.d.ts.map +1 -1
  221. package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts +1 -0
  222. package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
  223. package/lib/typescript/module/src/helpers/index.d.ts +1 -0
  224. package/lib/typescript/module/src/helpers/index.d.ts.map +1 -1
  225. package/lib/typescript/module/src/index.d.ts +0 -2
  226. package/lib/typescript/module/src/index.d.ts.map +1 -1
  227. package/lib/typescript/module/src/themes/LightTheme.d.ts.map +1 -1
  228. package/lib/typescript/module/src/types/button.type.d.ts +3 -2
  229. package/lib/typescript/module/src/types/button.type.d.ts.map +1 -1
  230. package/lib/typescript/module/src/types/chip.type.d.ts +1 -0
  231. package/lib/typescript/module/src/types/chip.type.d.ts.map +1 -1
  232. package/lib/typescript/module/src/types/dialog.type.d.ts +4 -6
  233. package/lib/typescript/module/src/types/dialog.type.d.ts.map +1 -1
  234. package/lib/typescript/module/src/types/index.d.ts +1 -0
  235. package/lib/typescript/module/src/types/index.d.ts.map +1 -1
  236. package/lib/typescript/module/src/types/menu.type.d.ts +7 -2
  237. package/lib/typescript/module/src/types/menu.type.d.ts.map +1 -1
  238. package/lib/typescript/module/src/types/progress.type.d.ts +13 -0
  239. package/lib/typescript/module/src/types/progress.type.d.ts.map +1 -0
  240. package/lib/typescript/module/src/types/stack.type.d.ts +6 -4
  241. package/lib/typescript/module/src/types/stack.type.d.ts.map +1 -1
  242. package/lib/typescript/module/src/types/styledComponents.type.d.ts +7 -1
  243. package/lib/typescript/module/src/types/styledComponents.type.d.ts.map +1 -1
  244. package/lib/typescript/module/src/types/userInput.type.d.ts +7 -1
  245. package/lib/typescript/module/src/types/userInput.type.d.ts.map +1 -1
  246. package/package.json +29 -19
  247. package/src/components/Button/Button.tsx +122 -79
  248. package/src/components/CheckBox/CheckBox.tsx +61 -49
  249. package/src/components/Chip/Chip.tsx +2 -2
  250. package/src/components/Dialog/Dialog.tsx +55 -51
  251. package/src/components/Dialog/DialogBody.tsx +7 -9
  252. package/src/components/Dialog/DialogDescription.tsx +10 -10
  253. package/src/components/Dialog/DialogFoot.tsx +15 -13
  254. package/src/components/Dialog/DialogHead.tsx +20 -17
  255. package/src/components/Divider/Divider.tsx +5 -10
  256. package/src/components/Grid/Grid.tsx +0 -1
  257. package/src/components/Header/Header.tsx +1 -0
  258. package/src/components/Icon/Icon.tsx +8 -4
  259. package/src/components/IconButton/IconButton.tsx +6 -6
  260. package/src/components/Link/Link.tsx +24 -7
  261. package/src/components/Menu/Menu.tsx +51 -51
  262. package/src/components/Menu/MenuItem.tsx +0 -2
  263. package/src/components/Portal/Portal.tsx +2 -2
  264. package/src/components/Progress/Progress.tsx +32 -35
  265. package/src/components/Stack/HStack.tsx +12 -14
  266. package/src/components/Stack/VStack.tsx +10 -9
  267. package/src/components/StyledComponents/StyledText.tsx +4 -7
  268. package/src/components/StyledComponents/StyledView.tsx +6 -2
  269. package/src/components/Switch/Switch.tsx +4 -4
  270. package/src/components/TouchableRipple/TouchableRipple.tsx +83 -83
  271. package/src/components/UserInput/UserInput.tsx +45 -39
  272. package/src/components/UserInput/UserInputV2.tsx +2 -2
  273. package/src/helpers/LightenColorShades.ts +26 -6
  274. package/src/helpers/ResponsiveCalculations.ts +28 -3
  275. package/src/helpers/index.ts +2 -1
  276. package/src/index.ts +2 -2
  277. package/src/themes/LightTheme.ts +1 -2
  278. package/src/types/button.type.ts +3 -2
  279. package/src/types/chip.type.ts +1 -0
  280. package/src/types/dialog.type.ts +6 -8
  281. package/src/types/index.ts +2 -1
  282. package/src/types/menu.type.ts +8 -2
  283. package/src/types/progress.type.ts +16 -0
  284. package/src/types/stack.type.ts +6 -4
  285. package/src/types/styledComponents.type.ts +8 -1
  286. package/src/types/userInput.type.ts +8 -1
  287. package/src/index.tsx +0 -3
@@ -1,6 +1,8 @@
1
+ import React from "react";
1
2
  import type { FlexStyle, StyleProp, ViewStyle } from "react-native";
3
+ import type { StyledViewProps } from "./styledComponents.type";
2
4
 
3
- export type HStackProps = ViewStyle & {
5
+ export type HStackProps = StyledViewProps & {
4
6
  /**
5
7
  * Defines the alignment of children along the main axis.
6
8
  */
@@ -24,7 +26,7 @@ export type HStackProps = ViewStyle & {
24
26
  /**
25
27
  * Custom styles for the container.
26
28
  */
27
- containerStyle?: StyleProp<ViewStyle>;
29
+ style?: StyleProp<ViewStyle>;
28
30
 
29
31
  /**
30
32
  * Child components to be rendered inside the HStack.
@@ -32,7 +34,7 @@ export type HStackProps = ViewStyle & {
32
34
  children?: React.ReactNode;
33
35
  };
34
36
 
35
- export type VStackProps = ViewStyle & {
37
+ export type VStackProps = StyledViewProps & {
36
38
  /**
37
39
  * Child components to be rendered inside the VStack.
38
40
  */
@@ -51,5 +53,5 @@ export type VStackProps = ViewStyle & {
51
53
  /**
52
54
  * Custom styles for the container.
53
55
  */
54
- containerStyle?: StyleProp<ViewStyle>;
56
+ style?: StyleProp<ViewStyle>;
55
57
  };
@@ -1,5 +1,6 @@
1
- import type { ColorValue, DimensionValue, StyleProp, TextProps, TextStyle, ViewProps, ViewStyle } from "react-native";
1
+ import type { ColorValue, DimensionValue, StyleProp, TextProps, TextStyle, View, ViewProps, ViewStyle } from "react-native";
2
2
  import type { TypographyVariant } from "./common.type";
3
+ import React from "react";
3
4
 
4
5
  export type StyledViewProps = ViewStyle & ViewProps & {
5
6
  /**
@@ -51,6 +52,12 @@ export type StyledViewProps = ViewStyle & ViewProps & {
51
52
  * Custom styles for the view component.
52
53
  */
53
54
  style?: StyleProp<ViewStyle>;
55
+
56
+ /**
57
+ * A ref to access the underlying View component.
58
+ * This can be used for measuring layout, animations, or imperative interactions.
59
+ */
60
+ ref?: React.RefObject<View>
54
61
  };
55
62
 
56
63
  export type StyledTextProps = TextProps & {
@@ -1,5 +1,6 @@
1
- import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
1
+ import type { StyleProp, TextInput, TextInputProps, TextStyle, ViewStyle } from "react-native";
2
2
  import type { TypographyVariant, UserInputVariant } from "./common.type";
3
+ import type { JSX } from "react";
3
4
 
4
5
  export type UserInputProps = TextInputProps & {
5
6
  /**
@@ -92,4 +93,10 @@ export type UserInputProps = TextInputProps & {
92
93
  label?: StyleProp<TextStyle>;
93
94
  helperText?: StyleProp<TextStyle>;
94
95
  };
96
+
97
+ /**
98
+ * A ref to access the underlying View component.
99
+ * This can be used for measuring layout, animations, or imperative interactions.
100
+ */
101
+ ref?: React.RefObject<TextInput>
95
102
  };
package/src/index.tsx DELETED
@@ -1,3 +0,0 @@
1
- export function multiply(a: number, b: number): number {
2
- return a * b;
3
- }