react-native-css 0.0.0-nightly.04af4c6 → 0.0.0-nightly.0acc293

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 (320) hide show
  1. package/dist/commonjs/compiler/keyframes.js +1 -1
  2. package/dist/commonjs/compiler/keyframes.js.map +1 -1
  3. package/dist/commonjs/components/ActivityIndicator.js +6 -6
  4. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  5. package/dist/commonjs/components/Button.js +6 -6
  6. package/dist/commonjs/components/Button.js.map +1 -1
  7. package/dist/commonjs/components/FlatList.js +6 -6
  8. package/dist/commonjs/components/FlatList.js.map +1 -1
  9. package/dist/commonjs/components/Image.js +6 -6
  10. package/dist/commonjs/components/Image.js.map +1 -1
  11. package/dist/commonjs/components/ImageBackground.js +6 -6
  12. package/dist/commonjs/components/ImageBackground.js.map +1 -1
  13. package/dist/commonjs/components/KeyboardAvoidingView.js +6 -6
  14. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -1
  15. package/dist/commonjs/components/Pressable.js +6 -6
  16. package/dist/commonjs/components/Pressable.js.map +1 -1
  17. package/dist/commonjs/components/ScrollView.js +6 -6
  18. package/dist/commonjs/components/ScrollView.js.map +1 -1
  19. package/dist/commonjs/components/Switch.js +6 -6
  20. package/dist/commonjs/components/Switch.js.map +1 -1
  21. package/dist/commonjs/components/Text.js +6 -6
  22. package/dist/commonjs/components/Text.js.map +1 -1
  23. package/dist/commonjs/components/TextInput.js +6 -6
  24. package/dist/commonjs/components/TextInput.js.map +1 -1
  25. package/dist/commonjs/components/TouchableHighlight.js +6 -6
  26. package/dist/commonjs/components/TouchableHighlight.js.map +1 -1
  27. package/dist/commonjs/components/TouchableOpacity.js +6 -6
  28. package/dist/commonjs/components/TouchableOpacity.js.map +1 -1
  29. package/dist/commonjs/components/TouchableWithoutFeedback.js +6 -6
  30. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -1
  31. package/dist/commonjs/components/View.js +6 -6
  32. package/dist/commonjs/components/View.js.map +1 -1
  33. package/dist/commonjs/components/VirtualizedList.js +6 -6
  34. package/dist/commonjs/components/VirtualizedList.js.map +1 -1
  35. package/dist/commonjs/components/copyComponentProperties.js +19 -0
  36. package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
  37. package/dist/commonjs/components/index.cjs +265 -0
  38. package/dist/commonjs/components/index.cjs.map +1 -0
  39. package/dist/commonjs/components/index.js.map +1 -1
  40. package/dist/commonjs/jest/index.js +1 -1
  41. package/dist/commonjs/jest/index.js.map +1 -1
  42. package/dist/commonjs/metro/index.js +8 -118
  43. package/dist/commonjs/metro/index.js.map +1 -1
  44. package/dist/commonjs/metro/metro-transformer.js +8 -1
  45. package/dist/commonjs/metro/metro-transformer.js.map +1 -1
  46. package/dist/commonjs/{native/metro.js → metro/override.js} +1 -1
  47. package/dist/commonjs/{native/metro.js.map → metro/override.js.map} +1 -1
  48. package/dist/commonjs/metro/resolver.js +15 -22
  49. package/dist/commonjs/metro/resolver.js.map +1 -1
  50. package/dist/commonjs/native/api.js +5 -1
  51. package/dist/commonjs/native/api.js.map +1 -1
  52. package/dist/commonjs/native/index.js +8 -8
  53. package/dist/commonjs/native/index.js.map +1 -1
  54. package/dist/commonjs/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
  55. package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
  56. package/dist/commonjs/native/styles/resolve.js +0 -1
  57. package/dist/commonjs/native/styles/resolve.js.map +1 -1
  58. package/dist/commonjs/native/styles/shorthands/animation.js +6 -2
  59. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
  60. package/dist/commonjs/web/api.js +5 -2
  61. package/dist/commonjs/web/api.js.map +1 -1
  62. package/dist/module/compiler/keyframes.js +1 -1
  63. package/dist/module/compiler/keyframes.js.map +1 -1
  64. package/dist/module/components/ActivityIndicator.js +4 -3
  65. package/dist/module/components/ActivityIndicator.js.map +1 -1
  66. package/dist/module/components/Button.js +4 -3
  67. package/dist/module/components/Button.js.map +1 -1
  68. package/dist/module/components/FlatList.js +4 -3
  69. package/dist/module/components/FlatList.js.map +1 -1
  70. package/dist/module/components/Image.js +4 -3
  71. package/dist/module/components/Image.js.map +1 -1
  72. package/dist/module/components/ImageBackground.js +4 -3
  73. package/dist/module/components/ImageBackground.js.map +1 -1
  74. package/dist/module/components/KeyboardAvoidingView.js +4 -3
  75. package/dist/module/components/KeyboardAvoidingView.js.map +1 -1
  76. package/dist/module/components/Pressable.js +4 -3
  77. package/dist/module/components/Pressable.js.map +1 -1
  78. package/dist/module/components/ScrollView.js +4 -3
  79. package/dist/module/components/ScrollView.js.map +1 -1
  80. package/dist/module/components/Switch.js +4 -3
  81. package/dist/module/components/Switch.js.map +1 -1
  82. package/dist/module/components/Text.js +4 -3
  83. package/dist/module/components/Text.js.map +1 -1
  84. package/dist/module/components/TextInput.js +4 -3
  85. package/dist/module/components/TextInput.js.map +1 -1
  86. package/dist/module/components/TouchableHighlight.js +4 -3
  87. package/dist/module/components/TouchableHighlight.js.map +1 -1
  88. package/dist/module/components/TouchableOpacity.js +4 -3
  89. package/dist/module/components/TouchableOpacity.js.map +1 -1
  90. package/dist/module/components/TouchableWithoutFeedback.js +4 -3
  91. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -1
  92. package/dist/module/components/View.js +4 -3
  93. package/dist/module/components/View.js.map +1 -1
  94. package/dist/module/components/VirtualizedList.js +4 -3
  95. package/dist/module/components/VirtualizedList.js.map +1 -1
  96. package/dist/module/components/copyComponentProperties.js +15 -0
  97. package/dist/module/components/copyComponentProperties.js.map +1 -0
  98. package/dist/module/components/index.cjs +265 -0
  99. package/dist/module/components/index.cjs.map +1 -0
  100. package/dist/module/components/index.js.map +1 -1
  101. package/dist/module/jest/index.js +1 -1
  102. package/dist/module/jest/index.js.map +1 -1
  103. package/dist/module/metro/index.js +8 -117
  104. package/dist/module/metro/index.js.map +1 -1
  105. package/dist/module/metro/metro-transformer.js +8 -1
  106. package/dist/module/metro/metro-transformer.js.map +1 -1
  107. package/dist/module/metro/override.js +4 -0
  108. package/dist/module/{native/metro.js.map → metro/override.js.map} +1 -1
  109. package/dist/module/metro/resolver.js +15 -22
  110. package/dist/module/metro/resolver.js.map +1 -1
  111. package/dist/module/native/api.js +4 -1
  112. package/dist/module/native/api.js.map +1 -1
  113. package/dist/module/native/index.js +1 -1
  114. package/dist/module/native/index.js.map +1 -1
  115. package/dist/module/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
  116. package/dist/module/native/react-native-css-metro-override.js.map +1 -0
  117. package/dist/module/native/styles/resolve.js +0 -1
  118. package/dist/module/native/styles/resolve.js.map +1 -1
  119. package/dist/module/native/styles/shorthands/animation.js +4 -1
  120. package/dist/module/native/styles/shorthands/animation.js.map +1 -1
  121. package/dist/module/web/api.js +5 -2
  122. package/dist/module/web/api.js.map +1 -1
  123. package/dist/typescript/commonjs/.config/eslint.config.d.mts +3 -0
  124. package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
  125. package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
  126. package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
  127. package/dist/typescript/commonjs/example/index.d.ts +2 -0
  128. package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
  129. package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
  130. package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
  131. package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
  132. package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
  133. package/dist/typescript/commonjs/example/src/App.d.ts +1 -0
  134. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
  135. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +1 -1
  136. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
  137. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
  138. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -4
  139. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  140. package/dist/typescript/commonjs/src/components/Button.d.ts +2 -4
  141. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  142. package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -3
  143. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  144. package/dist/typescript/commonjs/src/components/Image.d.ts +2 -4
  145. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  146. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +2 -4
  147. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -1
  148. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +2 -4
  149. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  150. package/dist/typescript/commonjs/src/components/Pressable.d.ts +2 -4
  151. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -1
  152. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +2 -4
  153. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -1
  154. package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
  155. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
  156. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
  157. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  158. package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -4
  159. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  160. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +2 -4
  161. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -1
  162. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +2 -4
  163. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -1
  164. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +2 -4
  165. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  166. package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
  167. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  168. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +3 -3
  169. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -1
  170. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
  171. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
  172. package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
  173. package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
  174. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
  175. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  176. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  177. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
  178. package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
  179. package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
  180. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
  181. package/dist/typescript/commonjs/src/native/api.d.ts +2 -2
  182. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
  183. package/dist/typescript/commonjs/src/native/index.d.ts +1 -1
  184. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -1
  185. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +1 -1
  186. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
  187. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
  188. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
  189. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +1 -0
  190. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
  191. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +1 -1
  192. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
  193. package/dist/typescript/commonjs/src/web/api.d.ts +2 -2
  194. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
  195. package/dist/typescript/module/.config/eslint.config.d.mts +3 -0
  196. package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
  197. package/dist/typescript/module/eslint.config.d.mts +2 -0
  198. package/dist/typescript/module/eslint.config.d.mts.map +1 -0
  199. package/dist/typescript/module/example/index.d.ts +2 -0
  200. package/dist/typescript/module/example/index.d.ts.map +1 -0
  201. package/dist/typescript/module/example/metro.config.d.ts +3 -0
  202. package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
  203. package/dist/typescript/module/example/postcss.config.d.mts +7 -0
  204. package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
  205. package/dist/typescript/module/example/src/App.d.ts +1 -0
  206. package/dist/typescript/module/example/src/App.d.ts.map +1 -1
  207. package/dist/typescript/module/src/compiler/declarations.d.ts +1 -1
  208. package/dist/typescript/module/src/compiler/keyframes.d.ts +1 -1
  209. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
  210. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -4
  211. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  212. package/dist/typescript/module/src/components/Button.d.ts +2 -4
  213. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  214. package/dist/typescript/module/src/components/FlatList.d.ts +3 -3
  215. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  216. package/dist/typescript/module/src/components/Image.d.ts +2 -4
  217. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  218. package/dist/typescript/module/src/components/ImageBackground.d.ts +2 -4
  219. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -1
  220. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +2 -4
  221. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  222. package/dist/typescript/module/src/components/Pressable.d.ts +2 -4
  223. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -1
  224. package/dist/typescript/module/src/components/ScrollView.d.ts +2 -4
  225. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -1
  226. package/dist/typescript/module/src/components/Switch.d.ts +2 -6
  227. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
  228. package/dist/typescript/module/src/components/Text.d.ts +2 -6
  229. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  230. package/dist/typescript/module/src/components/TextInput.d.ts +2 -4
  231. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  232. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +2 -4
  233. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -1
  234. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +2 -4
  235. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -1
  236. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +2 -4
  237. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  238. package/dist/typescript/module/src/components/View.d.ts +2 -6
  239. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  240. package/dist/typescript/module/src/components/VirtualizedList.d.ts +3 -3
  241. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -1
  242. package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
  243. package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
  244. package/dist/typescript/module/src/components/index.d.cts +2 -0
  245. package/dist/typescript/module/src/components/index.d.cts.map +1 -0
  246. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  247. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  248. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  249. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
  250. package/dist/typescript/module/src/metro/override.d.ts +2 -0
  251. package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
  252. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
  253. package/dist/typescript/module/src/native/api.d.ts +2 -2
  254. package/dist/typescript/module/src/native/api.d.ts.map +1 -1
  255. package/dist/typescript/module/src/native/index.d.ts +1 -1
  256. package/dist/typescript/module/src/native/index.d.ts.map +1 -1
  257. package/dist/typescript/module/src/native/react/useNativeCss.d.ts +1 -1
  258. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
  259. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
  260. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
  261. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +1 -0
  262. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
  263. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +1 -1
  264. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
  265. package/dist/typescript/module/src/web/api.d.ts +2 -2
  266. package/dist/typescript/module/src/web/api.d.ts.map +1 -1
  267. package/package.json +11 -12
  268. package/src/compiler/keyframes.ts +2 -2
  269. package/src/components/ActivityIndicator.tsx +9 -6
  270. package/src/components/Button.tsx +9 -4
  271. package/src/components/FlatList.tsx +14 -5
  272. package/src/components/Image.tsx +9 -4
  273. package/src/components/ImageBackground.tsx +9 -6
  274. package/src/components/KeyboardAvoidingView.tsx +9 -6
  275. package/src/components/Pressable.tsx +9 -4
  276. package/src/components/ScrollView.tsx +9 -6
  277. package/src/components/Switch.tsx +9 -4
  278. package/src/components/Text.tsx +9 -4
  279. package/src/components/TextInput.tsx +9 -4
  280. package/src/components/TouchableHighlight.tsx +9 -6
  281. package/src/components/TouchableOpacity.tsx +9 -6
  282. package/src/components/TouchableWithoutFeedback.tsx +9 -6
  283. package/src/components/View.tsx +9 -4
  284. package/src/components/VirtualizedList.tsx +18 -6
  285. package/src/components/copyComponentProperties.ts +21 -0
  286. package/src/components/index.cts +263 -0
  287. package/src/components/{index.tsx → index.ts} +0 -1
  288. package/src/jest/index.ts +2 -1
  289. package/src/metro/index.ts +8 -166
  290. package/src/metro/metro-transformer.ts +15 -1
  291. package/src/metro/override.ts +1 -0
  292. package/src/metro/resolver.ts +29 -28
  293. package/src/native/api.tsx +6 -2
  294. package/src/native/index.ts +1 -2
  295. package/src/native/styles/resolve.ts +0 -1
  296. package/src/native/styles/shorthands/animation.ts +10 -2
  297. package/src/utilities/dot-notation.types.ts +10 -3
  298. package/src/web/api.tsx +9 -4
  299. package/dist/commonjs/poison.pill.js.map +0 -1
  300. package/dist/commonjs/runtime/native/injection.js +0 -2
  301. package/dist/commonjs/runtime/native/injection.js.map +0 -1
  302. package/dist/module/native/metro.js +0 -5
  303. package/dist/module/poison.pill.js.map +0 -1
  304. package/dist/module/runtime/native/injection.js +0 -2
  305. package/dist/module/runtime/native/injection.js.map +0 -1
  306. package/dist/typescript/commonjs/src/native/metro.d.ts +0 -2
  307. package/dist/typescript/commonjs/src/native/metro.d.ts.map +0 -1
  308. package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
  309. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
  310. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +0 -1
  311. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +0 -1
  312. package/dist/typescript/module/src/native/metro.d.ts +0 -2
  313. package/dist/typescript/module/src/native/metro.d.ts.map +0 -1
  314. package/dist/typescript/module/src/poison.pill.d.ts +0 -2
  315. package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
  316. package/dist/typescript/module/src/runtime/native/injection.d.ts +0 -1
  317. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +0 -1
  318. package/src/native/metro.ts +0 -2
  319. package/src/runtime/native/injection.ts +0 -0
  320. /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
@@ -1,8 +1,4 @@
1
- import { type ViewProps } from "react-native";
2
- import { type StyledProps } from "react-native-css/native";
3
- declare const mapping: {
4
- className: "style";
5
- };
6
- export declare function View(props: StyledProps<ViewProps, typeof mapping>): import("react").FunctionComponentElement<import("react").FragmentProps> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
1
+ import { View as RNView } from "react-native";
2
+ export declare const View: typeof RNView;
7
3
  export default View;
8
4
  //# sourceMappingURL=View.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../../src/components/View.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;AAEjC,QAAA,MAAM,OAAO;;CAEiC,CAAC;AAE/C,wBAAgB,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,SAAS,EAAE,OAAO,OAAO,CAAC,oKAEjE;AAED,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../../src/components/View.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,MAAM,EAAkB,MAAM,cAAc,CAAC;AAc9D,eAAO,MAAM,IAAI,eAKhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,6 +1,6 @@
1
+ import type { ReactNode } from "react";
1
2
  import { VirtualizedList as RNVirtualizedList, type VirtualizedListProps } from "react-native";
2
- import { type StyledConfiguration, type StyledProps } from "../runtime";
3
- declare const mapping: StyledConfiguration<typeof RNVirtualizedList>;
4
- export declare function VirtualizedList<ItemT>(props: StyledProps<VirtualizedListProps<ItemT>, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
3
+ import { type StyledConfiguration, type StyledProps } from "react-native-css";
4
+ export declare const VirtualizedList: typeof RNVirtualizedList & (<ItemT>(props: StyledProps<VirtualizedListProps<ItemT>, StyledConfiguration<typeof RNVirtualizedList>>) => ReactNode);
5
5
  export default VirtualizedList;
6
6
  //# sourceMappingURL=VirtualizedList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualizedList.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualizedList.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,IAAI,iBAAiB,EACpC,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,YAAY,CAAC;AAEpB,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,OAAO,iBAAiB,CAK1D,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EACnC,KAAK,EAAE,WAAW,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,OAAO,OAAO,CAAC,0FAGhE;AAED,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"VirtualizedList.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualizedList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACL,eAAe,IAAI,iBAAiB,EACpC,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,kBAAkB,CAAC;AAW1B,eAAO,MAAM,eAAe,EAOZ,OAAO,iBAAiB,GACtC,CAAC,CAAC,KAAK,EACL,KAAK,EAAE,WAAW,CAChB,oBAAoB,CAAC,KAAK,CAAC,EAC3B,mBAAmB,CAAC,OAAO,iBAAiB,CAAC,CAC9C,KACE,SAAS,CAAC,CAAC;AAElB,eAAe,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ComponentType } from "react";
2
+ type AnyComponent = ComponentType<any>;
3
+ export declare function copyComponentProperties<T extends AnyComponent>(BaseComponent: T, Component: AnyComponent): T;
4
+ export {};
5
+ //# sourceMappingURL=copyComponentProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copyComponentProperties.d.ts","sourceRoot":"","sources":["../../../../../src/components/copyComponentProperties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,KAAK,YAAY,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;AAEvC,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,YAAY,EAC5D,aAAa,EAAE,CAAC,EAChB,SAAS,EAAE,YAAY,GAYQ,CAAC,CACjC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../../../src/components/index.cts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/jest/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAW,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAK1E,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,IAAI,CAAC;QACb,UAAU,QAAQ,CAAC,CAAC;YAClB,mBAAmB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC;SACzC;KACF;CACF;AAED,eAAO,MAAM,MAAM,qBAAqB,CAAC;AAczC,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO;;;;;;;EAoBpD;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,EACE,KAAoB,EACpB,GAAG,OAAO,EACX,GAAE,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAO;;;;;;;EAY1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/jest/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAW,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAK1E,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,IAAI,CAAC;QACb,UAAU,QAAQ,CAAC,CAAC;YAClB,mBAAmB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC;SACzC;KACF;CACF;AAED,eAAO,MAAM,MAAM,qBAAqB,CAAC;AAezC,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO;;;;;;;EAoBpD;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,EACE,KAAoB,EACpB,GAAG,OAAO,EACX,GAAE,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAO;;;;;;;EAY1D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/metro/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,aAAa,CAAC;AAKrB,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAEhE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,mEAAmE;IACnE,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAID,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,WAAW,GAAG,CAAC,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC,EACpD,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,CAAC,CAkNnD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/metro/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAEhE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,mEAAmE;IACnE,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAOD,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,WAAW,GAAG,CAAC,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC,EACpD,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,CAAC,CAwDnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"metro-transformer.d.ts","sourceRoot":"","sources":["../../../../../src/metro/metro-transformer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAW,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAO5D,wBAAsB,SAAS,CAC7B,MAAM,EAAE,mBAAmB,EAC3B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,kBAAkB,GAAG;IAC5B,cAAc,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;CAC9C,GACA,OAAO,CAAC,iBAAiB,CAAC,CAyB5B"}
1
+ {"version":3,"file":"metro-transformer.d.ts","sourceRoot":"","sources":["../../../../../src/metro/metro-transformer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAW,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAO5D,wBAAsB,SAAS,CAC7B,MAAM,EAAE,mBAAmB,EAC3B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,kBAAkB,GAAG;IAC5B,cAAc,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;CAC9C,GACA,OAAO,CAAC,iBAAiB,CAAC,CAuC5B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"override.d.ts","sourceRoot":"","sources":["../../../../../src/metro/override.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../../src/metro/resolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,cAAc,EACd,UAAU,EACX,MAAM,gBAAgB,CAAC;AAaxB,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,UAAU,CAyCZ;AAED,wBAAgB,WAAW,CACzB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,UAAU,CAwBZ"}
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../../src/metro/resolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,cAAc,EACd,UAAU,EACX,MAAM,gBAAgB,CAAC;AAaxB,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,UAAU,CAmCZ;AAED,wBAAgB,WAAW,CACzB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,UAAU,CA+BZ"}
@@ -10,10 +10,10 @@ export { useNativeCss };
10
10
  * @param baseComponent
11
11
  * @param mapping
12
12
  */
13
- export declare const styled: <const C extends ReactComponent<any>, const M extends StyledConfiguration<C>>(baseComponent: C, mapping: M, options?: StyledOptions) => any;
13
+ export declare const styled: <const C extends ReactComponent<any>, const M extends StyledConfiguration<C>>(baseComponent: C, mapping?: M, options?: StyledOptions) => any;
14
14
  export declare const colorScheme: ColorScheme;
15
15
  export declare const useUnstableNativeVariable: typeof useNativeVariable;
16
- export declare const useCssElement: <const C extends ReactComponent<any>, const M extends StyledConfiguration<C>>(component: C, incomingProps: Props, mapping: M) => import("react").FunctionComponentElement<import("react").FragmentProps> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
16
+ export declare const useCssElement: <const C extends ReactComponent<any>, const M extends StyledConfiguration<C>>(component: C, incomingProps: Props, mapping: M) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").FunctionComponentElement<import("react").FragmentProps>;
17
17
  export declare function useNativeVariable(name: string): any;
18
18
  /**
19
19
  * @deprecated Use `<VariableContextProvider />` instead.
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/native/api.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGjE,OAAO,KAAK,EACV,WAAW,EACX,KAAK,EACL,cAAc,EACd,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAmB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAEL,UAAU,EAGX,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,eAAe,EACf,eAAe,EACf,uBAAuB,GACxB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GACjB,KAAK,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EACnC,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,eAAe,CAAC,EAChB,SAAS,CAAC,EACV,UAAU,aAAa,QAoBxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAOzB,CAAC;AAEF,eAAO,MAAM,yBAAyB,0BAAoB,CAAC;AAE3D,eAAO,MAAM,aAAa,GACxB,KAAK,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EACnC,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,WAAW,CAAC,EACZ,eAAe,KAAK,EACpB,SAAS,CAAC,qKAIX,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,OAkB7C;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;;;;EAO9D"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/native/api.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGjE,OAAO,KAAK,EACV,WAAW,EACX,KAAK,EACL,cAAc,EACd,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAmB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAEL,UAAU,EAGX,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,eAAe,EACf,eAAe,EACf,uBAAuB,GACxB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,CAAC;AAMxB;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GACjB,KAAK,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EACnC,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,eAAe,CAAC,EAChB,UAAS,CAAuB,EAChC,UAAU,aAAa,QAoBxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAOzB,CAAC;AAEF,eAAO,MAAM,yBAAyB,0BAAoB,CAAC;AAE3D,eAAO,MAAM,aAAa,GACxB,KAAK,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EACnC,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,WAAW,CAAC,EACZ,eAAe,KAAK,EACpB,SAAS,CAAC,qKAIX,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,OAkB7C;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;;;;EAO9D"}
@@ -1,4 +1,4 @@
1
- export * from "./metro";
2
1
  export * from "./api";
3
2
  export type * from "../runtime.types";
3
+ export * from "./react-native-css-metro-override";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/native/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AAExB,cAAc,OAAO,CAAC;AACtB,mBAAmB,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/native/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,mBAAmB,kBAAkB,CAAC;AACtC,cAAc,mCAAmC,CAAC"}
@@ -30,7 +30,7 @@ export type ComponentState = {
30
30
  /**
31
31
  * useNativeCss is the native implementation of the useCssElement hook.
32
32
  */
33
- export declare function useNativeCss(type: ComponentType<any>, originalProps: Record<string, any> | undefined | null, configs?: Config[]): import("react").FunctionComponentElement<import("react").FragmentProps> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
33
+ export declare function useNativeCss(type: ComponentType<any>, originalProps: Record<string, any> | undefined | null, configs?: Config[]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").FunctionComponentElement<import("react").FragmentProps>;
34
34
  /**
35
35
  * Convert the styled() mapping to a config array
36
36
  */
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=react-native-css-metro-override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-native-css-metro-override.d.ts","sourceRoot":"","sources":["../../../../../src/native/react-native-css-metro-override.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../../../../src/native/styles/resolve.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,aAAa,EACd,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,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mB,CAAC;AAQxD,MAAM,MAAM,kBAAkB,GAAG,CAC/B,KAAK,EAAE,eAAe,EACtB,WAAW,CAAC,EAAE,OAAO,KAClB,OAAO,CAAC;AAEb,MAAM,MAAM,qBAAqB,GAAG,CAClC,YAAY,EAAE,kBAAkB,EAChC,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,mBAAmB,KACzB,OAAO,CAAC;AAEb,MAAM,MAAM,aAAa,GAAG,CAC1B,YAAY,EAAE,kBAAkB,EAChC,KAAK,EAAE,eAAe,EACtB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,mBAAmB,KACzB,OAAO,CAAC;AAYb,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,oBAAoB,CAAC;IAC1C,eAAe,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC7C,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,kFAAkF;IAClF,cAAc,CAAC,EAAE,OAAO,cAAc,CAAC;CACxC,CAAC;AAEF,wBAAgB,YAAY,CAC1B,KAAK,EAAE,eAAe,EACtB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,mBAAmB,GAC3B,GAAG,CA8FL"}
@@ -1,4 +1,5 @@
1
1
  import type { StyleFunctionResolver } from "../resolve";
2
2
  export declare const animationShorthand: import("../resolve").StyleResolver;
3
3
  export declare const animation: StyleFunctionResolver;
4
+ export declare const animationName: StyleFunctionResolver;
4
5
  //# sourceMappingURL=animation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../../../../../src/native/styles/shorthands/animation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAgCxD,eAAO,MAAM,kBAAkB,oCAuB9B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,qBA6DvB,CAAC"}
1
+ {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../../../../../src/native/styles/shorthands/animation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAgCxD,eAAO,MAAM,kBAAkB,oCAuB9B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,qBA2DvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,qBAQ3B,CAAC"}
@@ -6,7 +6,7 @@ type Primitive = string | number | boolean | bigint | symbol | null | undefined
6
6
  interface RecursiveArray<T> extends Array<T | ReadonlyArray<T> | RecursiveArray<T>> {
7
7
  }
8
8
  export type StyleProp<T> = T | RegisteredStyle<T> | RecursiveArray<T | RegisteredStyle<T> | Falsy> | Falsy;
9
- type UnwrapRecursiveArray<T> = T extends (infer I)[] ? UnwrapRecursiveArray<I> : T;
9
+ type UnwrapRecursiveArray<T, Depth extends unknown[] = [], MaxDepth extends number = 10> = Depth["length"] extends MaxDepth ? T : T extends (infer I)[] ? UnwrapRecursiveArray<I, [...Depth, unknown], MaxDepth> : T;
10
10
  type RemoveFalsy<T> = Exclude<T, Falsy>;
11
11
  type RemoveRegisteredStyle<T> = T extends RegisteredStyle<any> ? never : T;
12
12
  type ExtractStyleObject<T> = RemoveRegisteredStyle<RemoveFalsy<UnwrapRecursiveArray<T extends StyleProp<infer U> ? U : T>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"dot-notation.types.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/dot-notation.types.ts"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,CAAC;AAC3C,KAAK,eAAe,CAAC,CAAC,IAAI,MAAM,GAAG;IAAE,sBAAsB,EAAE,CAAC,CAAA;CAAE,CAAC;AAEjE,KAAK,SAAS,GACV,MAAM,GACN,MAAM,GACN,O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E,QAAQ,CAAC,EAAE,GACjE,aAAa,CAAC,OAAO,CAAC,SAAS,IAAI,GACjC,GAAG,GAAG,GAAG,GAAG,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,GAC/D,GAAG,GACT,KAAK,GACT,KAAK,CAAC;AAIZ,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,IAAI,SAAS,MAAM,IAAI,WAAW,CAC9D,CAAC,EACD,SAAS,CAAC,IAAI,CAAC,CAChB,CAAC"}
@@ -1,7 +1,7 @@
1
- import { type ComponentProps, type PropsWithChildren } from "react";
1
+ import { type ComponentPropsWithRef, type PropsWithChildren } from "react";
2
2
  import type { ColorScheme, Props, StyledConfiguration, StyledOptions, StyledProps } from "react-native-css";
3
3
  import type { ReactComponent } from "../runtime.types";
4
- export declare const styled: <const C extends ReactComponent, const M extends StyledConfiguration<C>>(baseComponent: C, mapping: M, _options?: StyledOptions) => (props: StyledProps<ComponentProps<C>, M>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
4
+ export declare const styled: <const C extends ReactComponent, const M extends StyledConfiguration<C>>(baseComponent: C, mapping?: M, _options?: StyledOptions) => (props: StyledProps<ComponentPropsWithRef<C>, M>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
5
5
  export declare const useCssElement: <C extends ReactComponent>(component: C, incomingProps: Props, mapping: StyledConfiguration<C>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
6
6
  export declare const colorScheme: ColorScheme;
7
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/web/api.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACvB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EACV,WAAW,EACX,KAAK,EACL,mBAAmB,EACnB,aAAa,EACb,WAAW,EACZ,MAAM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9B,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,eAAe,CAAC,EAChB,UAAS,CAAuB,EAChC,WAAW,aAAa,MAEhB,OAAO,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,2FAGxD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,cAAc,EACpD,WAAW,CAAC,EACZ,eAAe,KAAK,EACpB,SAAS,mBAAmB,CAAC,CAAC,CAAC,2FA4BhC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAOzB,CAAC;AAEF;;GAEG;AACH,wBAAgB,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,0BAW9D;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,iBAAiB,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;CAAE,CAAC,2CAe5E;AAED,eAAO,MAAM,iBAAiB,aAE7B,CAAC;AAEF,eAAO,MAAM,yBAAyB,aAErC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-css",
3
- "version": "0.0.0-nightly.04af4c6",
3
+ "version": "0.0.0-nightly.0acc293",
4
4
  "description": "A CSS polyfill for React Native",
5
5
  "exports": {
6
6
  ".": {
@@ -37,19 +37,18 @@
37
37
  }
38
38
  },
39
39
  "./components": {
40
- "source": "./src/components/index.ts",
41
- "react-native": "./src/components/index.tsx",
40
+ "source": "./src/components/index.cts",
42
41
  "import": {
43
- "types": "./dist/typescript/module/src/components/index.d.ts",
44
- "default": "./dist/module/components/index.js"
42
+ "default": "./dist/module/components/index.cjs",
43
+ "types": "./dist/typescript/module/src/components/index.d.ts"
45
44
  },
46
45
  "require": {
47
- "types": "./dist/typescript/commonjs/src/components/index.d.ts",
48
- "default": "./dist/commonjs/components/index.js"
46
+ "default": "./dist/commonjs/components/index.cjs",
47
+ "types": "./dist/typescript/commonjs/src/components/index.d.ts"
49
48
  }
50
49
  },
51
50
  "./components/*": {
52
- "source": "./src/components/*.ts",
51
+ "source": "./src/components/*.tsx",
53
52
  "react-native": "./src/components/*.tsx",
54
53
  "import": {
55
54
  "types": "./dist/typescript/module/src/components/*.d.ts",
@@ -200,7 +199,7 @@
200
199
  "@babel/core": "^7.28.0",
201
200
  "@commitlint/config-conventional": "^19.8.1",
202
201
  "@eslint/js": "^9.30.1",
203
- "@expo/metro-config": "~54.0.2",
202
+ "@expo/metro-config": "~54.0.5",
204
203
  "@ianvs/prettier-plugin-sort-imports": "^4.4.2",
205
204
  "@tailwindcss/postcss": "^4.1.12",
206
205
  "@testing-library/react-native": "^13.3.3",
@@ -211,13 +210,13 @@
211
210
  "@types/react": "^19.1.10",
212
211
  "@types/react-test-renderer": "^19",
213
212
  "babel-plugin-tester": "^12.0.0",
214
- "babel-preset-expo": "~54.0.0",
215
- "commitlint": "^19.8.1",
213
+ "babel-preset-expo": "~54.0.3",
214
+ "commitlint": "^20.0.0",
216
215
  "eas-build-cache-provider": "^16.4.2",
217
216
  "eslint": "^9.30.1",
218
217
  "eslint-config-prettier": "^10.1.5",
219
218
  "eslint-plugin-prettier": "^5.5.1",
220
- "expo": "54.0.1",
219
+ "expo": "54.0.10",
221
220
  "jest": "^29.7.0",
222
221
  "jest-expo": "~54.0.12",
223
222
  "lefthook": "^1.12.3",
@@ -10,9 +10,9 @@ import type { StylesheetBuilder } from "./stylesheet";
10
10
 
11
11
  export function parseIterationCount(
12
12
  value: AnimationIterationCount[],
13
- ): number[] {
13
+ ): (number | "infinite")[] {
14
14
  return value.map((value) => {
15
- return value.type === "infinite" ? -1 : value.value;
15
+ return value.type === "infinite" ? value.type : value.value;
16
16
  });
17
17
  }
18
18
 
@@ -7,7 +7,9 @@ import {
7
7
  useCssElement,
8
8
  type StyledConfiguration,
9
9
  type StyledProps,
10
- } from "../runtime";
10
+ } from "react-native-css";
11
+
12
+ import { copyComponentProperties } from "./copyComponentProperties";
11
13
 
12
14
  const mapping: StyledConfiguration<typeof RNActivityIndicator> = {
13
15
  className: {
@@ -18,10 +20,11 @@ const mapping: StyledConfiguration<typeof RNActivityIndicator> = {
18
20
  },
19
21
  };
20
22
 
21
- export function ActivityIndicator(
22
- props: StyledProps<ActivityIndicatorProps, typeof mapping>,
23
- ) {
24
- return useCssElement(RNActivityIndicator, props, mapping);
25
- }
23
+ export const ActivityIndicator = copyComponentProperties(
24
+ RNActivityIndicator,
25
+ (props: StyledProps<ActivityIndicatorProps, typeof mapping>) => {
26
+ return useCssElement(RNActivityIndicator, props, mapping);
27
+ },
28
+ );
26
29
 
27
30
  export default ActivityIndicator;
@@ -4,7 +4,9 @@ import {
4
4
  useCssElement,
5
5
  type StyledConfiguration,
6
6
  type StyledProps,
7
- } from "../runtime";
7
+ } from "react-native-css";
8
+
9
+ import { copyComponentProperties } from "./copyComponentProperties";
8
10
 
9
11
  const mapping: StyledConfiguration<typeof RNButton> = {
10
12
  className: {
@@ -15,8 +17,11 @@ const mapping: StyledConfiguration<typeof RNButton> = {
15
17
  },
16
18
  };
17
19
 
18
- export function Button(props: StyledProps<ButtonProps, typeof mapping>) {
19
- return useCssElement(RNButton, props, mapping);
20
- }
20
+ export const Button = copyComponentProperties(
21
+ RNButton,
22
+ (props: StyledProps<ButtonProps, typeof mapping>) => {
23
+ return useCssElement(RNButton, props, mapping);
24
+ },
25
+ );
21
26
 
22
27
  export default Button;
@@ -1,10 +1,13 @@
1
+ import type { ReactNode } from "react";
1
2
  import { FlatList as RNFlatList, type FlatListProps } from "react-native";
2
3
 
3
4
  import {
4
5
  useCssElement,
5
6
  type StyledConfiguration,
6
7
  type StyledProps,
7
- } from "../runtime";
8
+ } from "react-native-css";
9
+
10
+ import { copyComponentProperties } from "./copyComponentProperties";
8
11
 
9
12
  const mapping: StyledConfiguration<typeof RNFlatList> = {
10
13
  ListFooterComponentClassName: "ListFooterComponentStyle",
@@ -13,10 +16,16 @@ const mapping: StyledConfiguration<typeof RNFlatList> = {
13
16
  contentContainerClassName: "contentContainerStyle",
14
17
  };
15
18
 
16
- export function FlatList<ItemT>(
17
- props: StyledProps<FlatListProps<ItemT>, typeof mapping>,
18
- ) {
19
+ export const FlatList = copyComponentProperties(RNFlatList, function <
20
+ ItemT,
21
+ >(props: StyledProps<FlatListProps<ItemT>, typeof mapping>) {
19
22
  return useCssElement(RNFlatList, props, mapping);
20
- }
23
+ }) as unknown as typeof RNFlatList &
24
+ (<ItemT>(
25
+ props: StyledProps<
26
+ FlatListProps<ItemT>,
27
+ StyledConfiguration<typeof RNFlatList>
28
+ >,
29
+ ) => ReactNode);
21
30
 
22
31
  export default FlatList;
@@ -4,14 +4,19 @@ import {
4
4
  useCssElement,
5
5
  type StyledConfiguration,
6
6
  type StyledProps,
7
- } from "../runtime";
7
+ } from "react-native-css";
8
+
9
+ import { copyComponentProperties } from "./copyComponentProperties";
8
10
 
9
11
  const mapping: StyledConfiguration<typeof RNImage> = {
10
12
  className: "style",
11
13
  };
12
14
 
13
- export function Image(props: StyledProps<ImageProps, typeof mapping>) {
14
- return useCssElement(RNImage, props, mapping);
15
- }
15
+ export const Image = copyComponentProperties(
16
+ RNImage,
17
+ (props: StyledProps<ImageProps, typeof mapping>) => {
18
+ return useCssElement(RNImage, props, mapping);
19
+ },
20
+ );
16
21
 
17
22
  export default Image;
@@ -7,7 +7,9 @@ import {
7
7
  useCssElement,
8
8
  type StyledConfiguration,
9
9
  type StyledProps,
10
- } from "../runtime";
10
+ } from "react-native-css";
11
+
12
+ import { copyComponentProperties } from "./copyComponentProperties";
11
13
 
12
14
  const mapping: StyledConfiguration<typeof RNImageBackground> = {
13
15
  className: {
@@ -18,10 +20,11 @@ const mapping: StyledConfiguration<typeof RNImageBackground> = {
18
20
  },
19
21
  };
20
22
 
21
- export function ImageBackground(
22
- props: StyledProps<ImageBackgroundProps, typeof mapping>,
23
- ) {
24
- return useCssElement(RNImageBackground, props, mapping);
25
- }
23
+ export const ImageBackground = copyComponentProperties(
24
+ RNImageBackground,
25
+ (props: StyledProps<ImageBackgroundProps, typeof mapping>) => {
26
+ return useCssElement(RNImageBackground, props, mapping);
27
+ },
28
+ );
26
29
 
27
30
  export default ImageBackground;
@@ -7,7 +7,9 @@ import {
7
7
  useCssElement,
8
8
  type StyledConfiguration,
9
9
  type StyledProps,
10
- } from "../runtime";
10
+ } from "react-native-css";
11
+
12
+ import { copyComponentProperties } from "./copyComponentProperties";
11
13
 
12
14
  const mapping: StyledConfiguration<typeof RNKeyboardAvoidingView> = {
13
15
  className: {
@@ -15,10 +17,11 @@ const mapping: StyledConfiguration<typeof RNKeyboardAvoidingView> = {
15
17
  },
16
18
  };
17
19
 
18
- export function KeyboardAvoidingView(
19
- props: StyledProps<KeyboardAvoidingViewProps, typeof mapping>,
20
- ) {
21
- return useCssElement(RNKeyboardAvoidingView, props, mapping);
22
- }
20
+ export const KeyboardAvoidingView = copyComponentProperties(
21
+ RNKeyboardAvoidingView,
22
+ (props: StyledProps<KeyboardAvoidingViewProps, typeof mapping>) => {
23
+ return useCssElement(RNKeyboardAvoidingView, props, mapping);
24
+ },
25
+ );
23
26
 
24
27
  export default KeyboardAvoidingView;
@@ -4,14 +4,19 @@ import {
4
4
  useCssElement,
5
5
  type StyledConfiguration,
6
6
  type StyledProps,
7
- } from "../runtime";
7
+ } from "react-native-css";
8
+
9
+ import { copyComponentProperties } from "./copyComponentProperties";
8
10
 
9
11
  const mapping: StyledConfiguration<typeof RNPressable> = {
10
12
  className: "style",
11
13
  };
12
14
 
13
- export function Pressable(props: StyledProps<PressableProps, typeof mapping>) {
14
- return useCssElement(RNPressable, props, mapping);
15
- }
15
+ export const Pressable = copyComponentProperties(
16
+ RNPressable,
17
+ (props: StyledProps<PressableProps, typeof mapping>) => {
18
+ return useCssElement(RNPressable, props, mapping);
19
+ },
20
+ );
16
21
 
17
22
  export default Pressable;
@@ -4,17 +4,20 @@ import {
4
4
  useCssElement,
5
5
  type StyledConfiguration,
6
6
  type StyledProps,
7
- } from "../runtime";
7
+ } from "react-native-css";
8
+
9
+ import { copyComponentProperties } from "./copyComponentProperties";
8
10
 
9
11
  const mapping: StyledConfiguration<typeof RNScrollView> = {
10
12
  className: "style",
11
13
  contentContainerClassName: "contentContainerStyle",
12
14
  };
13
15
 
14
- export function ScrollView(
15
- props: StyledProps<ScrollViewProps, typeof mapping>,
16
- ) {
17
- return useCssElement(RNScrollView, props, mapping);
18
- }
16
+ export const ScrollView = copyComponentProperties(
17
+ RNScrollView,
18
+ (props: StyledProps<ScrollViewProps, typeof mapping>) => {
19
+ return useCssElement(RNScrollView, props, mapping);
20
+ },
21
+ );
19
22
 
20
23
  export default ScrollView;
@@ -4,14 +4,19 @@ import {
4
4
  useCssElement,
5
5
  type StyledConfiguration,
6
6
  type StyledProps,
7
- } from "../runtime";
7
+ } from "react-native-css";
8
+
9
+ import { copyComponentProperties } from "./copyComponentProperties";
8
10
 
9
11
  const mapping = {
10
12
  className: "style",
11
13
  } satisfies StyledConfiguration<typeof RNSwitch>;
12
14
 
13
- export function Switch(props: StyledProps<SwitchProps, typeof mapping>) {
14
- return useCssElement(RNSwitch, props, mapping);
15
- }
15
+ export const Switch = copyComponentProperties(
16
+ RNSwitch,
17
+ (props: StyledProps<SwitchProps, typeof mapping>) => {
18
+ return useCssElement(RNSwitch, props, mapping);
19
+ },
20
+ );
16
21
 
17
22
  export default Switch;
@@ -4,14 +4,19 @@ import {
4
4
  useCssElement,
5
5
  type StyledConfiguration,
6
6
  type StyledProps,
7
- } from "react-native-css/native";
7
+ } from "react-native-css";
8
+
9
+ import { copyComponentProperties } from "./copyComponentProperties";
8
10
 
9
11
  const mapping = {
10
12
  className: "style",
11
13
  } satisfies StyledConfiguration<typeof RNText>;
12
14
 
13
- export function Text(props: StyledProps<TextProps, typeof mapping>) {
14
- return useCssElement(RNText, props, mapping);
15
- }
15
+ export const Text = copyComponentProperties(
16
+ RNText,
17
+ (props: StyledProps<TextProps, typeof mapping>) => {
18
+ return useCssElement(RNText, props, mapping);
19
+ },
20
+ );
16
21
 
17
22
  export default Text;
@@ -4,7 +4,9 @@ import {
4
4
  useCssElement,
5
5
  type StyledConfiguration,
6
6
  type StyledProps,
7
- } from "../runtime";
7
+ } from "react-native-css";
8
+
9
+ import { copyComponentProperties } from "./copyComponentProperties";
8
10
 
9
11
  const mapping: StyledConfiguration<typeof RNTextInput> = {
10
12
  className: {
@@ -15,8 +17,11 @@ const mapping: StyledConfiguration<typeof RNTextInput> = {
15
17
  },
16
18
  };
17
19
 
18
- export function TextInput(props: StyledProps<TextInputProps, typeof mapping>) {
19
- return useCssElement(RNTextInput, props, mapping);
20
- }
20
+ export const TextInput = copyComponentProperties(
21
+ RNTextInput,
22
+ (props: StyledProps<TextInputProps, typeof mapping>) => {
23
+ return useCssElement(RNTextInput, props, mapping);
24
+ },
25
+ );
21
26
 
22
27
  export default TextInput;