react-native-nitro-input 0.2.0 → 0.3.1

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 (222) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/README.md +132 -2
  3. package/android/CMakeLists.txt +4 -0
  4. package/android/gradle.properties +1 -1
  5. package/android/src/main/cpp/JReflowEngine.cpp +32 -0
  6. package/android/src/main/cpp/JReflowEngine.hpp +13 -0
  7. package/android/src/main/cpp/JRollingEngine.cpp +43 -2
  8. package/android/src/main/cpp/JRollingEngine.hpp +9 -1
  9. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputView.kt +20 -0
  10. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberFormatPlatform.kt +284 -0
  11. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberView.kt +113 -0
  12. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroTextMeasure.kt +25 -0
  13. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroTextView.kt +140 -0
  14. package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputPackage.kt +2 -1
  15. package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputView.kt +69 -10
  16. package/android/src/main/java/com/margelo/nitro/nitroinput/NitroNumberView.kt +522 -130
  17. package/android/src/main/java/com/margelo/nitro/nitroinput/NitroTextView.kt +868 -0
  18. package/android/src/main/java/com/margelo/nitro/nitroinput/ReflowEngine.kt +21 -0
  19. package/android/src/main/java/com/margelo/nitro/nitroinput/RollingEngine.kt +14 -2
  20. package/cpp/RollingEngine.cpp +102 -8
  21. package/cpp/RollingEngine.hpp +44 -3
  22. package/cpp/numberformat/HybridNitroNumberFormat.cpp +498 -0
  23. package/cpp/numberformat/HybridNitroNumberFormat.hpp +74 -0
  24. package/cpp/numberformat/HybridNitroNumberFormatFactory.hpp +11 -0
  25. package/cpp/numberformat/NumberFormatCore.cpp +629 -0
  26. package/cpp/numberformat/NumberFormatCore.hpp +154 -0
  27. package/cpp/numberformat/NumberFormatProbe.cpp +354 -0
  28. package/cpp/numberformat/NumberFormatProbe.hpp +63 -0
  29. package/ios/HybridNitroInputView.swift +15 -0
  30. package/ios/HybridNitroNumberFormatPlatform.swift +426 -0
  31. package/ios/HybridNitroNumberView.swift +101 -1
  32. package/ios/HybridNitroTextView.swift +134 -0
  33. package/ios/NitroInputView.swift +79 -19
  34. package/ios/NitroNumberView.swift +520 -147
  35. package/ios/NitroTextView.swift +583 -0
  36. package/lib/commonjs/nitrogen/generated/shared/json/NitroInputViewConfig.json +5 -0
  37. package/lib/commonjs/nitrogen/generated/shared/json/NitroNumberViewConfig.json +26 -0
  38. package/lib/commonjs/nitrogen/generated/shared/json/NitroTextViewConfig.json +30 -0
  39. package/lib/commonjs/src/NitroInput.js +8 -6
  40. package/lib/commonjs/src/NitroNumber.js +54 -3
  41. package/lib/commonjs/src/NitroText.js +138 -0
  42. package/lib/commonjs/src/NitroTime.js +65 -0
  43. package/lib/commonjs/src/NumberFormat.js +525 -0
  44. package/lib/commonjs/src/formatProps.js +108 -0
  45. package/lib/commonjs/src/index.js +8 -1
  46. package/lib/commonjs/src/specs/NitroText.nitro.js +2 -0
  47. package/lib/commonjs/src/specs/NumberFormat.nitro.js +2 -0
  48. package/lib/module/nitrogen/generated/shared/json/NitroInputViewConfig.json +5 -0
  49. package/lib/module/nitrogen/generated/shared/json/NitroNumberViewConfig.json +26 -0
  50. package/lib/module/nitrogen/generated/shared/json/NitroTextViewConfig.json +30 -0
  51. package/lib/module/src/NitroInput.js +8 -6
  52. package/lib/module/src/NitroNumber.js +54 -3
  53. package/lib/module/src/NitroText.js +98 -0
  54. package/lib/module/src/NitroTime.js +29 -0
  55. package/lib/module/src/NumberFormat.js +521 -0
  56. package/lib/module/src/formatProps.js +104 -0
  57. package/lib/module/src/index.js +3 -0
  58. package/lib/module/src/specs/NitroText.nitro.js +1 -0
  59. package/lib/module/src/specs/NumberFormat.nitro.js +1 -0
  60. package/lib/typescript/src/NitroInput.d.ts +22 -0
  61. package/lib/typescript/src/NitroNumber.d.ts +115 -2
  62. package/lib/typescript/src/NitroText.d.ts +67 -0
  63. package/lib/typescript/src/NitroTime.d.ts +19 -0
  64. package/lib/typescript/src/NumberFormat.d.ts +47 -0
  65. package/lib/typescript/src/formatProps.d.ts +47 -0
  66. package/lib/typescript/src/index.d.ts +6 -1
  67. package/lib/typescript/src/specs/NitroInput.nitro.d.ts +10 -0
  68. package/lib/typescript/src/specs/NitroNumber.nitro.d.ts +80 -1
  69. package/lib/typescript/src/specs/NitroText.nitro.d.ts +60 -0
  70. package/lib/typescript/src/specs/NumberFormat.nitro.d.ts +139 -0
  71. package/nitro.json +36 -0
  72. package/nitrogen/generated/android/NitroInput+autolinking.cmake +12 -0
  73. package/nitrogen/generated/android/NitroInputOnLoad.cpp +62 -0
  74. package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.cpp +45 -0
  75. package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.hpp +10 -0
  76. package/nitrogen/generated/android/c++/JHybridNitroNumberFormatPlatformSpec.cpp +118 -0
  77. package/nitrogen/generated/android/c++/JHybridNitroNumberFormatPlatformSpec.hpp +64 -0
  78. package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.cpp +297 -0
  79. package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.hpp +52 -0
  80. package/nitrogen/generated/android/c++/JHybridNitroPlatformNumberFormatterSpec.cpp +65 -0
  81. package/nitrogen/generated/android/c++/JHybridNitroPlatformNumberFormatterSpec.hpp +64 -0
  82. package/nitrogen/generated/android/c++/JHybridNitroTextMeasureSpec.cpp +58 -0
  83. package/nitrogen/generated/android/c++/JHybridNitroTextMeasureSpec.hpp +64 -0
  84. package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.cpp +253 -0
  85. package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.hpp +104 -0
  86. package/nitrogen/generated/android/c++/JNitroNumberDirection.hpp +3 -0
  87. package/nitrogen/generated/android/c++/JNitroNumberShimmerDirection.hpp +61 -0
  88. package/nitrogen/generated/android/c++/JNitroNumberSignDisplay.hpp +67 -0
  89. package/nitrogen/generated/android/c++/JNumberFormatCompactDisplay.hpp +58 -0
  90. package/nitrogen/generated/android/c++/JNumberFormatCurrencyDisplay.hpp +64 -0
  91. package/nitrogen/generated/android/c++/JNumberFormatCurrencySign.hpp +58 -0
  92. package/nitrogen/generated/android/c++/JNumberFormatNotation.hpp +64 -0
  93. package/nitrogen/generated/android/c++/JNumberFormatPlatformOptions.hpp +161 -0
  94. package/nitrogen/generated/android/c++/JNumberFormatPlatformSymbols.hpp +89 -0
  95. package/nitrogen/generated/android/c++/JNumberFormatRoundingMode.hpp +79 -0
  96. package/nitrogen/generated/android/c++/JNumberFormatSignDisplay.hpp +67 -0
  97. package/nitrogen/generated/android/c++/JNumberFormatStyle.hpp +64 -0
  98. package/nitrogen/generated/android/c++/JNumberFormatUnitDisplay.hpp +61 -0
  99. package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.cpp +25 -0
  100. package/nitrogen/generated/android/c++/views/JHybridNitroNumberViewStateUpdater.cpp +130 -0
  101. package/nitrogen/generated/android/c++/views/JHybridNitroTextViewStateUpdater.cpp +174 -0
  102. package/nitrogen/generated/android/c++/views/JHybridNitroTextViewStateUpdater.hpp +54 -0
  103. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputViewSpec.kt +30 -0
  104. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberFormatPlatformSpec.kt +60 -0
  105. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberViewSpec.kt +172 -0
  106. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroPlatformNumberFormatterSpec.kt +62 -0
  107. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroTextMeasureSpec.kt +60 -0
  108. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroTextViewSpec.kt +179 -0
  109. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberDirection.kt +2 -1
  110. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberShimmerDirection.kt +24 -0
  111. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberSignDisplay.kt +26 -0
  112. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCompactDisplay.kt +23 -0
  113. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCurrencyDisplay.kt +25 -0
  114. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCurrencySign.kt +23 -0
  115. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatNotation.kt +25 -0
  116. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatPlatformOptions.kt +136 -0
  117. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatPlatformSymbols.kt +91 -0
  118. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatRoundingMode.kt +30 -0
  119. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatSignDisplay.kt +26 -0
  120. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatStyle.kt +25 -0
  121. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatUnitDisplay.kt +24 -0
  122. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/views/HybridNitroTextViewManager.kt +96 -0
  123. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/views/HybridNitroTextViewStateUpdater.kt +23 -0
  124. package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.cpp +68 -0
  125. package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.hpp +184 -0
  126. package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Umbrella.hpp +56 -0
  127. package/nitrogen/generated/ios/NitroInputAutolinking.mm +34 -0
  128. package/nitrogen/generated/ios/NitroInputAutolinking.swift +36 -0
  129. package/nitrogen/generated/ios/c++/HybridNitroInputViewSpecSwift.hpp +30 -0
  130. package/nitrogen/generated/ios/c++/HybridNitroNumberFormatPlatformSpecSwift.cpp +11 -0
  131. package/nitrogen/generated/ios/c++/HybridNitroNumberFormatPlatformSpecSwift.hpp +122 -0
  132. package/nitrogen/generated/ios/c++/HybridNitroNumberViewSpecSwift.hpp +188 -0
  133. package/nitrogen/generated/ios/c++/HybridNitroPlatformNumberFormatterSpecSwift.cpp +11 -0
  134. package/nitrogen/generated/ios/c++/HybridNitroPlatformNumberFormatterSpecSwift.hpp +94 -0
  135. package/nitrogen/generated/ios/c++/HybridNitroTextMeasureSpecSwift.cpp +11 -0
  136. package/nitrogen/generated/ios/c++/HybridNitroTextMeasureSpecSwift.hpp +90 -0
  137. package/nitrogen/generated/ios/c++/HybridNitroTextViewSpecSwift.cpp +11 -0
  138. package/nitrogen/generated/ios/c++/HybridNitroTextViewSpecSwift.hpp +233 -0
  139. package/nitrogen/generated/ios/c++/views/HybridNitroInputViewComponent.mm +30 -0
  140. package/nitrogen/generated/ios/c++/views/HybridNitroNumberViewComponent.mm +156 -0
  141. package/nitrogen/generated/ios/c++/views/HybridNitroTextViewComponent.mm +264 -0
  142. package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec.swift +5 -0
  143. package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec_cxx.swift +55 -0
  144. package/nitrogen/generated/ios/swift/HybridNitroNumberFormatPlatformSpec.swift +56 -0
  145. package/nitrogen/generated/ios/swift/HybridNitroNumberFormatPlatformSpec_cxx.swift +159 -0
  146. package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec.swift +26 -0
  147. package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec_cxx.swift +658 -21
  148. package/nitrogen/generated/ios/swift/HybridNitroPlatformNumberFormatterSpec.swift +56 -0
  149. package/nitrogen/generated/ios/swift/HybridNitroPlatformNumberFormatterSpec_cxx.swift +155 -0
  150. package/nitrogen/generated/ios/swift/HybridNitroTextMeasureSpec.swift +56 -0
  151. package/nitrogen/generated/ios/swift/HybridNitroTextMeasureSpec_cxx.swift +150 -0
  152. package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec.swift +75 -0
  153. package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec_cxx.swift +608 -0
  154. package/nitrogen/generated/ios/swift/NitroNumberDirection.swift +4 -0
  155. package/nitrogen/generated/ios/swift/NitroNumberShimmerDirection.swift +44 -0
  156. package/nitrogen/generated/ios/swift/NitroNumberSignDisplay.swift +52 -0
  157. package/nitrogen/generated/ios/swift/NumberFormatCompactDisplay.swift +40 -0
  158. package/nitrogen/generated/ios/swift/NumberFormatCurrencyDisplay.swift +48 -0
  159. package/nitrogen/generated/ios/swift/NumberFormatCurrencySign.swift +40 -0
  160. package/nitrogen/generated/ios/swift/NumberFormatNotation.swift +48 -0
  161. package/nitrogen/generated/ios/swift/NumberFormatPlatformOptions.swift +159 -0
  162. package/nitrogen/generated/ios/swift/NumberFormatPlatformSymbols.swift +69 -0
  163. package/nitrogen/generated/ios/swift/NumberFormatRoundingMode.swift +68 -0
  164. package/nitrogen/generated/ios/swift/NumberFormatSignDisplay.swift +52 -0
  165. package/nitrogen/generated/ios/swift/NumberFormatStyle.swift +48 -0
  166. package/nitrogen/generated/ios/swift/NumberFormatUnitDisplay.swift +44 -0
  167. package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.cpp +10 -0
  168. package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.hpp +10 -0
  169. package/nitrogen/generated/shared/c++/HybridNitroNumberFormatFactorySpec.cpp +22 -0
  170. package/nitrogen/generated/shared/c++/HybridNitroNumberFormatFactorySpec.hpp +70 -0
  171. package/nitrogen/generated/shared/c++/HybridNitroNumberFormatPlatformSpec.cpp +22 -0
  172. package/nitrogen/generated/shared/c++/HybridNitroNumberFormatPlatformSpec.hpp +70 -0
  173. package/nitrogen/generated/shared/c++/HybridNitroNumberFormatSpec.cpp +23 -0
  174. package/nitrogen/generated/shared/c++/HybridNitroNumberFormatSpec.hpp +71 -0
  175. package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.cpp +52 -0
  176. package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.hpp +58 -0
  177. package/nitrogen/generated/shared/c++/HybridNitroPlatformNumberFormatterSpec.cpp +23 -0
  178. package/nitrogen/generated/shared/c++/HybridNitroPlatformNumberFormatterSpec.hpp +65 -0
  179. package/nitrogen/generated/shared/c++/HybridNitroTextMeasureSpec.cpp +22 -0
  180. package/nitrogen/generated/shared/c++/HybridNitroTextMeasureSpec.hpp +63 -0
  181. package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.cpp +62 -0
  182. package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.hpp +115 -0
  183. package/nitrogen/generated/shared/c++/NitroNumberDirection.hpp +4 -0
  184. package/nitrogen/generated/shared/c++/NitroNumberShimmerDirection.hpp +80 -0
  185. package/nitrogen/generated/shared/c++/NitroNumberSignDisplay.hpp +88 -0
  186. package/nitrogen/generated/shared/c++/NumberFormatCompactDisplay.hpp +76 -0
  187. package/nitrogen/generated/shared/c++/NumberFormatCurrencyDisplay.hpp +84 -0
  188. package/nitrogen/generated/shared/c++/NumberFormatCurrencySign.hpp +76 -0
  189. package/nitrogen/generated/shared/c++/NumberFormatGrouping.hpp +80 -0
  190. package/nitrogen/generated/shared/c++/NumberFormatNotation.hpp +84 -0
  191. package/nitrogen/generated/shared/c++/NumberFormatOptions.hpp +193 -0
  192. package/nitrogen/generated/shared/c++/NumberFormatPart.hpp +87 -0
  193. package/nitrogen/generated/shared/c++/NumberFormatPlatformOptions.hpp +176 -0
  194. package/nitrogen/generated/shared/c++/NumberFormatPlatformSymbols.hpp +115 -0
  195. package/nitrogen/generated/shared/c++/NumberFormatRoundingMode.hpp +104 -0
  196. package/nitrogen/generated/shared/c++/NumberFormatRoundingPriority.hpp +80 -0
  197. package/nitrogen/generated/shared/c++/NumberFormatSignDisplay.hpp +88 -0
  198. package/nitrogen/generated/shared/c++/NumberFormatStyle.hpp +84 -0
  199. package/nitrogen/generated/shared/c++/NumberFormatTrailingZeroDisplay.hpp +76 -0
  200. package/nitrogen/generated/shared/c++/NumberFormatUnitDisplay.hpp +80 -0
  201. package/nitrogen/generated/shared/c++/ResolvedNumberFormatOptions.hpp +197 -0
  202. package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.cpp +10 -0
  203. package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.hpp +15 -0
  204. package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.cpp +52 -0
  205. package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.hpp +80 -0
  206. package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.cpp +74 -0
  207. package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.hpp +149 -0
  208. package/nitrogen/generated/shared/json/NitroInputViewConfig.json +5 -0
  209. package/nitrogen/generated/shared/json/NitroNumberViewConfig.json +26 -0
  210. package/nitrogen/generated/shared/json/NitroTextViewConfig.json +30 -0
  211. package/package.json +2 -2
  212. package/src/NitroInput.tsx +42 -7
  213. package/src/NitroNumber.tsx +236 -12
  214. package/src/NitroText.tsx +166 -0
  215. package/src/NitroTime.tsx +68 -0
  216. package/src/NumberFormat.ts +563 -0
  217. package/src/formatProps.ts +149 -0
  218. package/src/index.ts +23 -0
  219. package/src/specs/NitroInput.nitro.ts +10 -0
  220. package/src/specs/NitroNumber.nitro.ts +82 -1
  221. package/src/specs/NitroText.nitro.ts +65 -0
  222. package/src/specs/NumberFormat.nitro.ts +145 -0
@@ -0,0 +1,197 @@
1
+ ///
2
+ /// ResolvedNumberFormatOptions.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+ #if __has_include(<NitroModules/JSIHelpers.hpp>)
21
+ #include <NitroModules/JSIHelpers.hpp>
22
+ #else
23
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
+ #endif
25
+ #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
+ #include <NitroModules/PropNameIDCache.hpp>
27
+ #else
28
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
+ #endif
30
+
31
+ // Forward declaration of `NumberFormatStyle` to properly resolve imports.
32
+ namespace margelo::nitro::nitroinput { enum class NumberFormatStyle; }
33
+ // Forward declaration of `NumberFormatCurrencyDisplay` to properly resolve imports.
34
+ namespace margelo::nitro::nitroinput { enum class NumberFormatCurrencyDisplay; }
35
+ // Forward declaration of `NumberFormatCurrencySign` to properly resolve imports.
36
+ namespace margelo::nitro::nitroinput { enum class NumberFormatCurrencySign; }
37
+ // Forward declaration of `NumberFormatUnitDisplay` to properly resolve imports.
38
+ namespace margelo::nitro::nitroinput { enum class NumberFormatUnitDisplay; }
39
+ // Forward declaration of `NumberFormatGrouping` to properly resolve imports.
40
+ namespace margelo::nitro::nitroinput { enum class NumberFormatGrouping; }
41
+ // Forward declaration of `NumberFormatNotation` to properly resolve imports.
42
+ namespace margelo::nitro::nitroinput { enum class NumberFormatNotation; }
43
+ // Forward declaration of `NumberFormatCompactDisplay` to properly resolve imports.
44
+ namespace margelo::nitro::nitroinput { enum class NumberFormatCompactDisplay; }
45
+ // Forward declaration of `NumberFormatSignDisplay` to properly resolve imports.
46
+ namespace margelo::nitro::nitroinput { enum class NumberFormatSignDisplay; }
47
+ // Forward declaration of `NumberFormatRoundingMode` to properly resolve imports.
48
+ namespace margelo::nitro::nitroinput { enum class NumberFormatRoundingMode; }
49
+ // Forward declaration of `NumberFormatRoundingPriority` to properly resolve imports.
50
+ namespace margelo::nitro::nitroinput { enum class NumberFormatRoundingPriority; }
51
+ // Forward declaration of `NumberFormatTrailingZeroDisplay` to properly resolve imports.
52
+ namespace margelo::nitro::nitroinput { enum class NumberFormatTrailingZeroDisplay; }
53
+
54
+ #include <string>
55
+ #include "NumberFormatStyle.hpp"
56
+ #include <optional>
57
+ #include "NumberFormatCurrencyDisplay.hpp"
58
+ #include "NumberFormatCurrencySign.hpp"
59
+ #include "NumberFormatUnitDisplay.hpp"
60
+ #include "NumberFormatGrouping.hpp"
61
+ #include <variant>
62
+ #include "NumberFormatNotation.hpp"
63
+ #include "NumberFormatCompactDisplay.hpp"
64
+ #include "NumberFormatSignDisplay.hpp"
65
+ #include "NumberFormatRoundingMode.hpp"
66
+ #include "NumberFormatRoundingPriority.hpp"
67
+ #include "NumberFormatTrailingZeroDisplay.hpp"
68
+
69
+ namespace margelo::nitro::nitroinput {
70
+
71
+ /**
72
+ * A struct which can be represented as a JavaScript object (ResolvedNumberFormatOptions).
73
+ */
74
+ struct ResolvedNumberFormatOptions final {
75
+ public:
76
+ std::string locale SWIFT_PRIVATE;
77
+ std::string numberingSystem SWIFT_PRIVATE;
78
+ NumberFormatStyle style SWIFT_PRIVATE;
79
+ std::optional<std::string> currency SWIFT_PRIVATE;
80
+ std::optional<NumberFormatCurrencyDisplay> currencyDisplay SWIFT_PRIVATE;
81
+ std::optional<NumberFormatCurrencySign> currencySign SWIFT_PRIVATE;
82
+ std::optional<std::string> unit SWIFT_PRIVATE;
83
+ std::optional<NumberFormatUnitDisplay> unitDisplay SWIFT_PRIVATE;
84
+ double minimumIntegerDigits SWIFT_PRIVATE;
85
+ std::optional<double> minimumFractionDigits SWIFT_PRIVATE;
86
+ std::optional<double> maximumFractionDigits SWIFT_PRIVATE;
87
+ std::optional<double> minimumSignificantDigits SWIFT_PRIVATE;
88
+ std::optional<double> maximumSignificantDigits SWIFT_PRIVATE;
89
+ std::variant<bool, NumberFormatGrouping> useGrouping SWIFT_PRIVATE;
90
+ NumberFormatNotation notation SWIFT_PRIVATE;
91
+ std::optional<NumberFormatCompactDisplay> compactDisplay SWIFT_PRIVATE;
92
+ NumberFormatSignDisplay signDisplay SWIFT_PRIVATE;
93
+ double roundingIncrement SWIFT_PRIVATE;
94
+ NumberFormatRoundingMode roundingMode SWIFT_PRIVATE;
95
+ NumberFormatRoundingPriority roundingPriority SWIFT_PRIVATE;
96
+ NumberFormatTrailingZeroDisplay trailingZeroDisplay SWIFT_PRIVATE;
97
+
98
+ public:
99
+ ResolvedNumberFormatOptions() = default;
100
+ explicit ResolvedNumberFormatOptions(std::string locale, std::string numberingSystem, NumberFormatStyle style, std::optional<std::string> currency, std::optional<NumberFormatCurrencyDisplay> currencyDisplay, std::optional<NumberFormatCurrencySign> currencySign, std::optional<std::string> unit, std::optional<NumberFormatUnitDisplay> unitDisplay, double minimumIntegerDigits, std::optional<double> minimumFractionDigits, std::optional<double> maximumFractionDigits, std::optional<double> minimumSignificantDigits, std::optional<double> maximumSignificantDigits, std::variant<bool, NumberFormatGrouping> useGrouping, NumberFormatNotation notation, std::optional<NumberFormatCompactDisplay> compactDisplay, NumberFormatSignDisplay signDisplay, double roundingIncrement, NumberFormatRoundingMode roundingMode, NumberFormatRoundingPriority roundingPriority, NumberFormatTrailingZeroDisplay trailingZeroDisplay): locale(locale), numberingSystem(numberingSystem), style(style), currency(currency), currencyDisplay(currencyDisplay), currencySign(currencySign), unit(unit), unitDisplay(unitDisplay), minimumIntegerDigits(minimumIntegerDigits), minimumFractionDigits(minimumFractionDigits), maximumFractionDigits(maximumFractionDigits), minimumSignificantDigits(minimumSignificantDigits), maximumSignificantDigits(maximumSignificantDigits), useGrouping(useGrouping), notation(notation), compactDisplay(compactDisplay), signDisplay(signDisplay), roundingIncrement(roundingIncrement), roundingMode(roundingMode), roundingPriority(roundingPriority), trailingZeroDisplay(trailingZeroDisplay) {}
101
+
102
+ public:
103
+ friend bool operator==(const ResolvedNumberFormatOptions& lhs, const ResolvedNumberFormatOptions& rhs) = default;
104
+ };
105
+
106
+ } // namespace margelo::nitro::nitroinput
107
+
108
+ namespace margelo::nitro {
109
+
110
+ // C++ ResolvedNumberFormatOptions <> JS ResolvedNumberFormatOptions (object)
111
+ template <>
112
+ struct JSIConverter<margelo::nitro::nitroinput::ResolvedNumberFormatOptions> final {
113
+ static inline margelo::nitro::nitroinput::ResolvedNumberFormatOptions fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
114
+ jsi::Object obj = arg.asObject(runtime);
115
+ return margelo::nitro::nitroinput::ResolvedNumberFormatOptions(
116
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "locale"))),
117
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "numberingSystem"))),
118
+ JSIConverter<margelo::nitro::nitroinput::NumberFormatStyle>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "style"))),
119
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "currency"))),
120
+ JSIConverter<std::optional<margelo::nitro::nitroinput::NumberFormatCurrencyDisplay>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "currencyDisplay"))),
121
+ JSIConverter<std::optional<margelo::nitro::nitroinput::NumberFormatCurrencySign>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "currencySign"))),
122
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "unit"))),
123
+ JSIConverter<std::optional<margelo::nitro::nitroinput::NumberFormatUnitDisplay>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "unitDisplay"))),
124
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "minimumIntegerDigits"))),
125
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "minimumFractionDigits"))),
126
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maximumFractionDigits"))),
127
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "minimumSignificantDigits"))),
128
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maximumSignificantDigits"))),
129
+ JSIConverter<std::variant<bool, margelo::nitro::nitroinput::NumberFormatGrouping>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "useGrouping"))),
130
+ JSIConverter<margelo::nitro::nitroinput::NumberFormatNotation>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "notation"))),
131
+ JSIConverter<std::optional<margelo::nitro::nitroinput::NumberFormatCompactDisplay>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "compactDisplay"))),
132
+ JSIConverter<margelo::nitro::nitroinput::NumberFormatSignDisplay>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signDisplay"))),
133
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "roundingIncrement"))),
134
+ JSIConverter<margelo::nitro::nitroinput::NumberFormatRoundingMode>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "roundingMode"))),
135
+ JSIConverter<margelo::nitro::nitroinput::NumberFormatRoundingPriority>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "roundingPriority"))),
136
+ JSIConverter<margelo::nitro::nitroinput::NumberFormatTrailingZeroDisplay>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "trailingZeroDisplay")))
137
+ );
138
+ }
139
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroinput::ResolvedNumberFormatOptions& arg) {
140
+ jsi::Object obj(runtime);
141
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "locale"), JSIConverter<std::string>::toJSI(runtime, arg.locale));
142
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "numberingSystem"), JSIConverter<std::string>::toJSI(runtime, arg.numberingSystem));
143
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "style"), JSIConverter<margelo::nitro::nitroinput::NumberFormatStyle>::toJSI(runtime, arg.style));
144
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "currency"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.currency));
145
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "currencyDisplay"), JSIConverter<std::optional<margelo::nitro::nitroinput::NumberFormatCurrencyDisplay>>::toJSI(runtime, arg.currencyDisplay));
146
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "currencySign"), JSIConverter<std::optional<margelo::nitro::nitroinput::NumberFormatCurrencySign>>::toJSI(runtime, arg.currencySign));
147
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "unit"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.unit));
148
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "unitDisplay"), JSIConverter<std::optional<margelo::nitro::nitroinput::NumberFormatUnitDisplay>>::toJSI(runtime, arg.unitDisplay));
149
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "minimumIntegerDigits"), JSIConverter<double>::toJSI(runtime, arg.minimumIntegerDigits));
150
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "minimumFractionDigits"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.minimumFractionDigits));
151
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maximumFractionDigits"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.maximumFractionDigits));
152
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "minimumSignificantDigits"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.minimumSignificantDigits));
153
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maximumSignificantDigits"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.maximumSignificantDigits));
154
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "useGrouping"), JSIConverter<std::variant<bool, margelo::nitro::nitroinput::NumberFormatGrouping>>::toJSI(runtime, arg.useGrouping));
155
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "notation"), JSIConverter<margelo::nitro::nitroinput::NumberFormatNotation>::toJSI(runtime, arg.notation));
156
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "compactDisplay"), JSIConverter<std::optional<margelo::nitro::nitroinput::NumberFormatCompactDisplay>>::toJSI(runtime, arg.compactDisplay));
157
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "signDisplay"), JSIConverter<margelo::nitro::nitroinput::NumberFormatSignDisplay>::toJSI(runtime, arg.signDisplay));
158
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "roundingIncrement"), JSIConverter<double>::toJSI(runtime, arg.roundingIncrement));
159
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "roundingMode"), JSIConverter<margelo::nitro::nitroinput::NumberFormatRoundingMode>::toJSI(runtime, arg.roundingMode));
160
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "roundingPriority"), JSIConverter<margelo::nitro::nitroinput::NumberFormatRoundingPriority>::toJSI(runtime, arg.roundingPriority));
161
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "trailingZeroDisplay"), JSIConverter<margelo::nitro::nitroinput::NumberFormatTrailingZeroDisplay>::toJSI(runtime, arg.trailingZeroDisplay));
162
+ return obj;
163
+ }
164
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
165
+ if (!value.isObject()) {
166
+ return false;
167
+ }
168
+ jsi::Object obj = value.getObject(runtime);
169
+ if (!nitro::isPlainObject(runtime, obj)) {
170
+ return false;
171
+ }
172
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "locale")))) return false;
173
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "numberingSystem")))) return false;
174
+ if (!JSIConverter<margelo::nitro::nitroinput::NumberFormatStyle>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "style")))) return false;
175
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "currency")))) return false;
176
+ if (!JSIConverter<std::optional<margelo::nitro::nitroinput::NumberFormatCurrencyDisplay>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "currencyDisplay")))) return false;
177
+ if (!JSIConverter<std::optional<margelo::nitro::nitroinput::NumberFormatCurrencySign>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "currencySign")))) return false;
178
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "unit")))) return false;
179
+ if (!JSIConverter<std::optional<margelo::nitro::nitroinput::NumberFormatUnitDisplay>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "unitDisplay")))) return false;
180
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "minimumIntegerDigits")))) return false;
181
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "minimumFractionDigits")))) return false;
182
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maximumFractionDigits")))) return false;
183
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "minimumSignificantDigits")))) return false;
184
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maximumSignificantDigits")))) return false;
185
+ if (!JSIConverter<std::variant<bool, margelo::nitro::nitroinput::NumberFormatGrouping>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "useGrouping")))) return false;
186
+ if (!JSIConverter<margelo::nitro::nitroinput::NumberFormatNotation>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "notation")))) return false;
187
+ if (!JSIConverter<std::optional<margelo::nitro::nitroinput::NumberFormatCompactDisplay>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "compactDisplay")))) return false;
188
+ if (!JSIConverter<margelo::nitro::nitroinput::NumberFormatSignDisplay>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signDisplay")))) return false;
189
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "roundingIncrement")))) return false;
190
+ if (!JSIConverter<margelo::nitro::nitroinput::NumberFormatRoundingMode>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "roundingMode")))) return false;
191
+ if (!JSIConverter<margelo::nitro::nitroinput::NumberFormatRoundingPriority>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "roundingPriority")))) return false;
192
+ if (!JSIConverter<margelo::nitro::nitroinput::NumberFormatTrailingZeroDisplay>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "trailingZeroDisplay")))) return false;
193
+ return true;
194
+ }
195
+ };
196
+
197
+ } // namespace margelo::nitro
@@ -50,6 +50,11 @@ namespace margelo::nitro::nitroinput::views {
50
50
  signPlacement(nitro::ReactProp<NitroInputSignPlacement>::fromRawValue("NitroInputView", "signPlacement", rawProps, sourceProps.signPlacement)),
51
51
  prefixAlign(nitro::ReactProp<NitroInputAffixAlign>::fromRawValue("NitroInputView", "prefixAlign", rawProps, sourceProps.prefixAlign)),
52
52
  suffixAlign(nitro::ReactProp<NitroInputAffixAlign>::fromRawValue("NitroInputView", "suffixAlign", rawProps, sourceProps.suffixAlign)),
53
+ letterSpacing(nitro::ReactProp<double>::fromRawValue("NitroInputView", "letterSpacing", rawProps, sourceProps.letterSpacing)),
54
+ prefixSpacing(nitro::ReactProp<double>::fromRawValue("NitroInputView", "prefixSpacing", rawProps, sourceProps.prefixSpacing)),
55
+ suffixSpacing(nitro::ReactProp<double>::fromRawValue("NitroInputView", "suffixSpacing", rawProps, sourceProps.suffixSpacing)),
56
+ prefixOffset(nitro::ReactProp<double>::fromRawValue("NitroInputView", "prefixOffset", rawProps, sourceProps.prefixOffset)),
57
+ suffixOffset(nitro::ReactProp<double>::fromRawValue("NitroInputView", "suffixOffset", rawProps, sourceProps.suffixOffset)),
53
58
  placeholder(nitro::ReactProp<std::string>::fromRawValue("NitroInputView", "placeholder", rawProps, sourceProps.placeholder)),
54
59
  placeholderColor(nitro::ReactProp<double>::fromRawValue("NitroInputView", "placeholderColor", rawProps, sourceProps.placeholderColor)),
55
60
  duration(nitro::ReactProp<double>::fromRawValue("NitroInputView", "duration", rawProps, sourceProps.duration)),
@@ -146,6 +151,11 @@ namespace margelo::nitro::nitroinput::views {
146
151
  case hashString("signPlacement"): return true;
147
152
  case hashString("prefixAlign"): return true;
148
153
  case hashString("suffixAlign"): return true;
154
+ case hashString("letterSpacing"): return true;
155
+ case hashString("prefixSpacing"): return true;
156
+ case hashString("suffixSpacing"): return true;
157
+ case hashString("prefixOffset"): return true;
158
+ case hashString("suffixOffset"): return true;
149
159
  case hashString("placeholder"): return true;
150
160
  case hashString("placeholderColor"): return true;
151
161
  case hashString("duration"): return true;
@@ -89,6 +89,11 @@ namespace margelo::nitro::nitroinput::views {
89
89
  nitro::ReactProp<NitroInputSignPlacement> signPlacement;
90
90
  nitro::ReactProp<NitroInputAffixAlign> prefixAlign;
91
91
  nitro::ReactProp<NitroInputAffixAlign> suffixAlign;
92
+ nitro::ReactProp<double> letterSpacing;
93
+ nitro::ReactProp<double> prefixSpacing;
94
+ nitro::ReactProp<double> suffixSpacing;
95
+ nitro::ReactProp<double> prefixOffset;
96
+ nitro::ReactProp<double> suffixOffset;
92
97
  nitro::ReactProp<std::string> placeholder;
93
98
  nitro::ReactProp<double> placeholderColor;
94
99
  nitro::ReactProp<double> duration;
@@ -185,6 +190,11 @@ namespace margelo::nitro::nitroinput::views {
185
190
  signPlacement.hasSameValue(other.signPlacement) &&
186
191
  prefixAlign.hasSameValue(other.prefixAlign) &&
187
192
  suffixAlign.hasSameValue(other.suffixAlign) &&
193
+ letterSpacing.hasSameValue(other.letterSpacing) &&
194
+ prefixSpacing.hasSameValue(other.prefixSpacing) &&
195
+ suffixSpacing.hasSameValue(other.suffixSpacing) &&
196
+ prefixOffset.hasSameValue(other.prefixOffset) &&
197
+ suffixOffset.hasSameValue(other.suffixOffset) &&
188
198
  placeholder.hasSameValue(other.placeholder) &&
189
199
  placeholderColor.hasSameValue(other.placeholderColor) &&
190
200
  duration.hasSameValue(other.duration) &&
@@ -282,6 +292,11 @@ namespace margelo::nitro::nitroinput::views {
282
292
  signPlacement.isProvided() ||
283
293
  prefixAlign.isProvided() ||
284
294
  suffixAlign.isProvided() ||
295
+ letterSpacing.isProvided() ||
296
+ prefixSpacing.isProvided() ||
297
+ suffixSpacing.isProvided() ||
298
+ prefixOffset.isProvided() ||
299
+ suffixOffset.isProvided() ||
285
300
  placeholder.isProvided() ||
286
301
  placeholderColor.isProvided() ||
287
302
  duration.isProvided() ||
@@ -48,12 +48,36 @@ namespace margelo::nitro::nitroinput::views {
48
48
  loading(nitro::ReactProp<std::optional<bool>>::fromRawValue("NitroNumberView", "loading", rawProps, sourceProps.loading)),
49
49
  shimmerColor(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "shimmerColor", rawProps, sourceProps.shimmerColor)),
50
50
  shimmerDuration(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "shimmerDuration", rawProps, sourceProps.shimmerDuration)),
51
+ shimmerAngle(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "shimmerAngle", rawProps, sourceProps.shimmerAngle)),
52
+ shimmerWidth(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "shimmerWidth", rawProps, sourceProps.shimmerWidth)),
53
+ shimmerBaseColor(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "shimmerBaseColor", rawProps, sourceProps.shimmerBaseColor)),
54
+ shimmerDirection(nitro::ReactProp<std::optional<NitroNumberShimmerDirection>>::fromRawValue("NitroNumberView", "shimmerDirection", rawProps, sourceProps.shimmerDirection)),
55
+ shimmerDelay(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "shimmerDelay", rawProps, sourceProps.shimmerDelay)),
51
56
  fontSize(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "fontSize", rawProps, sourceProps.fontSize)),
52
57
  prefixFontSize(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "prefixFontSize", rawProps, sourceProps.prefixFontSize)),
53
58
  suffixFontSize(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "suffixFontSize", rawProps, sourceProps.suffixFontSize)),
54
59
  affixAlign(nitro::ReactProp<std::optional<NitroNumberAffixAlign>>::fromRawValue("NitroNumberView", "affixAlign", rawProps, sourceProps.affixAlign)),
55
60
  prefixAlign(nitro::ReactProp<std::optional<NitroNumberAffixAlign>>::fromRawValue("NitroNumberView", "prefixAlign", rawProps, sourceProps.prefixAlign)),
56
61
  suffixAlign(nitro::ReactProp<std::optional<NitroNumberAffixAlign>>::fromRawValue("NitroNumberView", "suffixAlign", rawProps, sourceProps.suffixAlign)),
62
+ letterSpacing(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "letterSpacing", rawProps, sourceProps.letterSpacing)),
63
+ prefixSpacing(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "prefixSpacing", rawProps, sourceProps.prefixSpacing)),
64
+ suffixSpacing(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "suffixSpacing", rawProps, sourceProps.suffixSpacing)),
65
+ prefixOffset(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "prefixOffset", rawProps, sourceProps.prefixOffset)),
66
+ suffixOffset(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "suffixOffset", rawProps, sourceProps.suffixOffset)),
67
+ tabularNums(nitro::ReactProp<std::optional<bool>>::fromRawValue("NitroNumberView", "tabularNums", rawProps, sourceProps.tabularNums)),
68
+ signDisplay(nitro::ReactProp<std::optional<NitroNumberSignDisplay>>::fromRawValue("NitroNumberView", "signDisplay", rawProps, sourceProps.signDisplay)),
69
+ plusSign(nitro::ReactProp<std::optional<std::string>>::fromRawValue("NitroNumberView", "plusSign", rawProps, sourceProps.plusSign)),
70
+ minusSign(nitro::ReactProp<std::optional<std::string>>::fromRawValue("NitroNumberView", "minusSign", rawProps, sourceProps.minusSign)),
71
+ digitGlyphs(nitro::ReactProp<std::optional<std::vector<std::string>>>::fromRawValue("NitroNumberView", "digitGlyphs", rawProps, sourceProps.digitGlyphs)),
72
+ groupingSizes(nitro::ReactProp<std::optional<std::vector<double>>>::fromRawValue("NitroNumberView", "groupingSizes", rawProps, sourceProps.groupingSizes)),
73
+ digitMax(nitro::ReactProp<std::optional<std::vector<double>>>::fromRawValue("NitroNumberView", "digitMax", rawProps, sourceProps.digitMax)),
74
+ continuous(nitro::ReactProp<std::optional<bool>>::fromRawValue("NitroNumberView", "continuous", rawProps, sourceProps.continuous)),
75
+ prefixColor(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "prefixColor", rawProps, sourceProps.prefixColor)),
76
+ suffixColor(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "suffixColor", rawProps, sourceProps.suffixColor)),
77
+ fractionColor(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "fractionColor", rawProps, sourceProps.fractionColor)),
78
+ fractionFontSize(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "fractionFontSize", rawProps, sourceProps.fractionFontSize)),
79
+ fractionAlign(nitro::ReactProp<std::optional<NitroNumberAffixAlign>>::fromRawValue("NitroNumberView", "fractionAlign", rawProps, sourceProps.fractionAlign)),
80
+ respectReduceMotion(nitro::ReactProp<std::optional<bool>>::fromRawValue("NitroNumberView", "respectReduceMotion", rawProps, sourceProps.respectReduceMotion)),
57
81
  adjustsFontSizeToFit(nitro::ReactProp<std::optional<bool>>::fromRawValue("NitroNumberView", "adjustsFontSizeToFit", rawProps, sourceProps.adjustsFontSizeToFit)),
58
82
  minimumFontScale(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "minimumFontScale", rawProps, sourceProps.minimumFontScale)),
59
83
  allowFontScaling(nitro::ReactProp<std::optional<bool>>::fromRawValue("NitroNumberView", "allowFontScaling", rawProps, sourceProps.allowFontScaling)),
@@ -66,6 +90,8 @@ namespace margelo::nitro::nitroinput::views {
66
90
  onSizeChange(nitro::ReactProp<std::optional<std::function<void(double /* width */, double /* height */)>>>::fromRawValue("NitroNumberView", "onSizeChange", rawProps, sourceProps.onSizeChange)),
67
91
  onRevealEnd(nitro::ReactProp<std::optional<std::function<void()>>>::fromRawValue("NitroNumberView", "onRevealEnd", rawProps, sourceProps.onRevealEnd)),
68
92
  onRevealMilestone(nitro::ReactProp<std::optional<std::function<void(double /* index */, double /* value */)>>>::fromRawValue("NitroNumberView", "onRevealMilestone", rawProps, sourceProps.onRevealMilestone)),
93
+ onAnimationStart(nitro::ReactProp<std::optional<std::function<void()>>>::fromRawValue("NitroNumberView", "onAnimationStart", rawProps, sourceProps.onAnimationStart)),
94
+ onAnimationEnd(nitro::ReactProp<std::optional<std::function<void(double /* value */)>>>::fromRawValue("NitroNumberView", "onAnimationEnd", rawProps, sourceProps.onAnimationEnd)),
69
95
  hybridRef(nitro::ReactProp<std::optional<std::function<void(const std::shared_ptr<HybridNitroNumberViewSpec>& /* ref */)>>>::fromRawValue("NitroNumberView", "hybridRef", rawProps, sourceProps.hybridRef)) { }
70
96
 
71
97
  bool HybridNitroNumberViewProps::filterObjectKeys(const std::string& propName) {
@@ -98,12 +124,36 @@ namespace margelo::nitro::nitroinput::views {
98
124
  case hashString("loading"): return true;
99
125
  case hashString("shimmerColor"): return true;
100
126
  case hashString("shimmerDuration"): return true;
127
+ case hashString("shimmerAngle"): return true;
128
+ case hashString("shimmerWidth"): return true;
129
+ case hashString("shimmerBaseColor"): return true;
130
+ case hashString("shimmerDirection"): return true;
131
+ case hashString("shimmerDelay"): return true;
101
132
  case hashString("fontSize"): return true;
102
133
  case hashString("prefixFontSize"): return true;
103
134
  case hashString("suffixFontSize"): return true;
104
135
  case hashString("affixAlign"): return true;
105
136
  case hashString("prefixAlign"): return true;
106
137
  case hashString("suffixAlign"): return true;
138
+ case hashString("letterSpacing"): return true;
139
+ case hashString("prefixSpacing"): return true;
140
+ case hashString("suffixSpacing"): return true;
141
+ case hashString("prefixOffset"): return true;
142
+ case hashString("suffixOffset"): return true;
143
+ case hashString("tabularNums"): return true;
144
+ case hashString("signDisplay"): return true;
145
+ case hashString("plusSign"): return true;
146
+ case hashString("minusSign"): return true;
147
+ case hashString("digitGlyphs"): return true;
148
+ case hashString("groupingSizes"): return true;
149
+ case hashString("digitMax"): return true;
150
+ case hashString("continuous"): return true;
151
+ case hashString("prefixColor"): return true;
152
+ case hashString("suffixColor"): return true;
153
+ case hashString("fractionColor"): return true;
154
+ case hashString("fractionFontSize"): return true;
155
+ case hashString("fractionAlign"): return true;
156
+ case hashString("respectReduceMotion"): return true;
107
157
  case hashString("adjustsFontSizeToFit"): return true;
108
158
  case hashString("minimumFontScale"): return true;
109
159
  case hashString("allowFontScaling"): return true;
@@ -116,6 +166,8 @@ namespace margelo::nitro::nitroinput::views {
116
166
  case hashString("onSizeChange"): return true;
117
167
  case hashString("onRevealEnd"): return true;
118
168
  case hashString("onRevealMilestone"): return true;
169
+ case hashString("onAnimationStart"): return true;
170
+ case hashString("onAnimationEnd"): return true;
119
171
  case hashString("hybridRef"): return true;
120
172
  default: return false;
121
173
  }
@@ -24,7 +24,9 @@
24
24
  #include "NitroNumberDirection.hpp"
25
25
  #include "NitroNumberRevealStyle.hpp"
26
26
  #include <vector>
27
+ #include "NitroNumberShimmerDirection.hpp"
27
28
  #include "NitroNumberAffixAlign.hpp"
29
+ #include "NitroNumberSignDisplay.hpp"
28
30
  #include "NitroNumberTextAlign.hpp"
29
31
  #include <functional>
30
32
  #include <memory>
@@ -78,12 +80,36 @@ namespace margelo::nitro::nitroinput::views {
78
80
  nitro::ReactProp<std::optional<bool>> loading;
79
81
  nitro::ReactProp<std::optional<double>> shimmerColor;
80
82
  nitro::ReactProp<std::optional<double>> shimmerDuration;
83
+ nitro::ReactProp<std::optional<double>> shimmerAngle;
84
+ nitro::ReactProp<std::optional<double>> shimmerWidth;
85
+ nitro::ReactProp<std::optional<double>> shimmerBaseColor;
86
+ nitro::ReactProp<std::optional<NitroNumberShimmerDirection>> shimmerDirection;
87
+ nitro::ReactProp<std::optional<double>> shimmerDelay;
81
88
  nitro::ReactProp<std::optional<double>> fontSize;
82
89
  nitro::ReactProp<std::optional<double>> prefixFontSize;
83
90
  nitro::ReactProp<std::optional<double>> suffixFontSize;
84
91
  nitro::ReactProp<std::optional<NitroNumberAffixAlign>> affixAlign;
85
92
  nitro::ReactProp<std::optional<NitroNumberAffixAlign>> prefixAlign;
86
93
  nitro::ReactProp<std::optional<NitroNumberAffixAlign>> suffixAlign;
94
+ nitro::ReactProp<std::optional<double>> letterSpacing;
95
+ nitro::ReactProp<std::optional<double>> prefixSpacing;
96
+ nitro::ReactProp<std::optional<double>> suffixSpacing;
97
+ nitro::ReactProp<std::optional<double>> prefixOffset;
98
+ nitro::ReactProp<std::optional<double>> suffixOffset;
99
+ nitro::ReactProp<std::optional<bool>> tabularNums;
100
+ nitro::ReactProp<std::optional<NitroNumberSignDisplay>> signDisplay;
101
+ nitro::ReactProp<std::optional<std::string>> plusSign;
102
+ nitro::ReactProp<std::optional<std::string>> minusSign;
103
+ nitro::ReactProp<std::optional<std::vector<std::string>>> digitGlyphs;
104
+ nitro::ReactProp<std::optional<std::vector<double>>> groupingSizes;
105
+ nitro::ReactProp<std::optional<std::vector<double>>> digitMax;
106
+ nitro::ReactProp<std::optional<bool>> continuous;
107
+ nitro::ReactProp<std::optional<double>> prefixColor;
108
+ nitro::ReactProp<std::optional<double>> suffixColor;
109
+ nitro::ReactProp<std::optional<double>> fractionColor;
110
+ nitro::ReactProp<std::optional<double>> fractionFontSize;
111
+ nitro::ReactProp<std::optional<NitroNumberAffixAlign>> fractionAlign;
112
+ nitro::ReactProp<std::optional<bool>> respectReduceMotion;
87
113
  nitro::ReactProp<std::optional<bool>> adjustsFontSizeToFit;
88
114
  nitro::ReactProp<std::optional<double>> minimumFontScale;
89
115
  nitro::ReactProp<std::optional<bool>> allowFontScaling;
@@ -96,6 +122,8 @@ namespace margelo::nitro::nitroinput::views {
96
122
  nitro::ReactProp<std::optional<std::function<void(double /* width */, double /* height */)>>> onSizeChange;
97
123
  nitro::ReactProp<std::optional<std::function<void()>>> onRevealEnd;
98
124
  nitro::ReactProp<std::optional<std::function<void(double /* index */, double /* value */)>>> onRevealMilestone;
125
+ nitro::ReactProp<std::optional<std::function<void()>>> onAnimationStart;
126
+ nitro::ReactProp<std::optional<std::function<void(double /* value */)>>> onAnimationEnd;
99
127
  nitro::ReactProp<std::optional<std::function<void(const std::shared_ptr<HybridNitroNumberViewSpec>& /* ref */)>>> hybridRef;
100
128
 
101
129
  [[nodiscard]]
@@ -128,12 +156,36 @@ namespace margelo::nitro::nitroinput::views {
128
156
  loading.hasSameValue(other.loading) &&
129
157
  shimmerColor.hasSameValue(other.shimmerColor) &&
130
158
  shimmerDuration.hasSameValue(other.shimmerDuration) &&
159
+ shimmerAngle.hasSameValue(other.shimmerAngle) &&
160
+ shimmerWidth.hasSameValue(other.shimmerWidth) &&
161
+ shimmerBaseColor.hasSameValue(other.shimmerBaseColor) &&
162
+ shimmerDirection.hasSameValue(other.shimmerDirection) &&
163
+ shimmerDelay.hasSameValue(other.shimmerDelay) &&
131
164
  fontSize.hasSameValue(other.fontSize) &&
132
165
  prefixFontSize.hasSameValue(other.prefixFontSize) &&
133
166
  suffixFontSize.hasSameValue(other.suffixFontSize) &&
134
167
  affixAlign.hasSameValue(other.affixAlign) &&
135
168
  prefixAlign.hasSameValue(other.prefixAlign) &&
136
169
  suffixAlign.hasSameValue(other.suffixAlign) &&
170
+ letterSpacing.hasSameValue(other.letterSpacing) &&
171
+ prefixSpacing.hasSameValue(other.prefixSpacing) &&
172
+ suffixSpacing.hasSameValue(other.suffixSpacing) &&
173
+ prefixOffset.hasSameValue(other.prefixOffset) &&
174
+ suffixOffset.hasSameValue(other.suffixOffset) &&
175
+ tabularNums.hasSameValue(other.tabularNums) &&
176
+ signDisplay.hasSameValue(other.signDisplay) &&
177
+ plusSign.hasSameValue(other.plusSign) &&
178
+ minusSign.hasSameValue(other.minusSign) &&
179
+ digitGlyphs.hasSameValue(other.digitGlyphs) &&
180
+ groupingSizes.hasSameValue(other.groupingSizes) &&
181
+ digitMax.hasSameValue(other.digitMax) &&
182
+ continuous.hasSameValue(other.continuous) &&
183
+ prefixColor.hasSameValue(other.prefixColor) &&
184
+ suffixColor.hasSameValue(other.suffixColor) &&
185
+ fractionColor.hasSameValue(other.fractionColor) &&
186
+ fractionFontSize.hasSameValue(other.fractionFontSize) &&
187
+ fractionAlign.hasSameValue(other.fractionAlign) &&
188
+ respectReduceMotion.hasSameValue(other.respectReduceMotion) &&
137
189
  adjustsFontSizeToFit.hasSameValue(other.adjustsFontSizeToFit) &&
138
190
  minimumFontScale.hasSameValue(other.minimumFontScale) &&
139
191
  allowFontScaling.hasSameValue(other.allowFontScaling) &&
@@ -146,6 +198,8 @@ namespace margelo::nitro::nitroinput::views {
146
198
  onSizeChange.hasSameValue(other.onSizeChange) &&
147
199
  onRevealEnd.hasSameValue(other.onRevealEnd) &&
148
200
  onRevealMilestone.hasSameValue(other.onRevealMilestone) &&
201
+ onAnimationStart.hasSameValue(other.onAnimationStart) &&
202
+ onAnimationEnd.hasSameValue(other.onAnimationEnd) &&
149
203
  hybridRef.hasSameValue(other.hybridRef);
150
204
  }
151
205
 
@@ -179,12 +233,36 @@ namespace margelo::nitro::nitroinput::views {
179
233
  loading.isProvided() ||
180
234
  shimmerColor.isProvided() ||
181
235
  shimmerDuration.isProvided() ||
236
+ shimmerAngle.isProvided() ||
237
+ shimmerWidth.isProvided() ||
238
+ shimmerBaseColor.isProvided() ||
239
+ shimmerDirection.isProvided() ||
240
+ shimmerDelay.isProvided() ||
182
241
  fontSize.isProvided() ||
183
242
  prefixFontSize.isProvided() ||
184
243
  suffixFontSize.isProvided() ||
185
244
  affixAlign.isProvided() ||
186
245
  prefixAlign.isProvided() ||
187
246
  suffixAlign.isProvided() ||
247
+ letterSpacing.isProvided() ||
248
+ prefixSpacing.isProvided() ||
249
+ suffixSpacing.isProvided() ||
250
+ prefixOffset.isProvided() ||
251
+ suffixOffset.isProvided() ||
252
+ tabularNums.isProvided() ||
253
+ signDisplay.isProvided() ||
254
+ plusSign.isProvided() ||
255
+ minusSign.isProvided() ||
256
+ digitGlyphs.isProvided() ||
257
+ groupingSizes.isProvided() ||
258
+ digitMax.isProvided() ||
259
+ continuous.isProvided() ||
260
+ prefixColor.isProvided() ||
261
+ suffixColor.isProvided() ||
262
+ fractionColor.isProvided() ||
263
+ fractionFontSize.isProvided() ||
264
+ fractionAlign.isProvided() ||
265
+ respectReduceMotion.isProvided() ||
188
266
  adjustsFontSizeToFit.isProvided() ||
189
267
  minimumFontScale.isProvided() ||
190
268
  allowFontScaling.isProvided() ||
@@ -197,6 +275,8 @@ namespace margelo::nitro::nitroinput::views {
197
275
  onSizeChange.isProvided() ||
198
276
  onRevealEnd.isProvided() ||
199
277
  onRevealMilestone.isProvided() ||
278
+ onAnimationStart.isProvided() ||
279
+ onAnimationEnd.isProvided() ||
200
280
  hybridRef.isProvided();
201
281
  }
202
282
 
@@ -0,0 +1,74 @@
1
+ ///
2
+ /// HybridNitroTextViewComponent.cpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #include "HybridNitroTextViewComponent.hpp"
9
+
10
+ #include <NitroModules/NitroHash.hpp>
11
+ #include <NitroModules/ReactProp.hpp>
12
+
13
+ namespace margelo::nitro::nitroinput::views {
14
+
15
+ using namespace facebook;
16
+
17
+ extern const char HybridNitroTextViewComponentName[] = "NitroTextView";
18
+
19
+ HybridNitroTextViewProps::HybridNitroTextViewProps(const react::PropsParserContext& context,
20
+ const HybridNitroTextViewProps& sourceProps,
21
+ const react::RawProps& rawProps):
22
+ react::ViewProps(context, sourceProps, rawProps, filterObjectKeys),
23
+ text(nitro::ReactProp<std::string>::fromRawValue("NitroTextView", "text", rawProps, sourceProps.text)),
24
+ fontSize(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "fontSize", rawProps, sourceProps.fontSize)),
25
+ fontWeight(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "fontWeight", rawProps, sourceProps.fontWeight)),
26
+ fontFamily(nitro::ReactProp<std::optional<std::string>>::fromRawValue("NitroTextView", "fontFamily", rawProps, sourceProps.fontFamily)),
27
+ color(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "color", rawProps, sourceProps.color)),
28
+ letterSpacing(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "letterSpacing", rawProps, sourceProps.letterSpacing)),
29
+ textAlign(nitro::ReactProp<std::optional<NitroNumberTextAlign>>::fromRawValue("NitroTextView", "textAlign", rawProps, sourceProps.textAlign)),
30
+ rightToLeft(nitro::ReactProp<std::optional<bool>>::fromRawValue("NitroTextView", "rightToLeft", rawProps, sourceProps.rightToLeft)),
31
+ duration(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "duration", rawProps, sourceProps.duration)),
32
+ easing(nitro::ReactProp<std::optional<NitroInputEasing>>::fromRawValue("NitroTextView", "easing", rawProps, sourceProps.easing)),
33
+ bounce(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "bounce", rawProps, sourceProps.bounce)),
34
+ effect(nitro::ReactProp<std::optional<NitroInputEffect>>::fromRawValue("NitroTextView", "effect", rawProps, sourceProps.effect)),
35
+ respectReduceMotion(nitro::ReactProp<std::optional<bool>>::fromRawValue("NitroTextView", "respectReduceMotion", rawProps, sourceProps.respectReduceMotion)),
36
+ loading(nitro::ReactProp<std::optional<bool>>::fromRawValue("NitroTextView", "loading", rawProps, sourceProps.loading)),
37
+ shimmerColor(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "shimmerColor", rawProps, sourceProps.shimmerColor)),
38
+ shimmerDuration(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "shimmerDuration", rawProps, sourceProps.shimmerDuration)),
39
+ shimmerAngle(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "shimmerAngle", rawProps, sourceProps.shimmerAngle)),
40
+ shimmerWidth(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "shimmerWidth", rawProps, sourceProps.shimmerWidth)),
41
+ shimmerBaseColor(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "shimmerBaseColor", rawProps, sourceProps.shimmerBaseColor)),
42
+ shimmerDirection(nitro::ReactProp<std::optional<NitroNumberShimmerDirection>>::fromRawValue("NitroTextView", "shimmerDirection", rawProps, sourceProps.shimmerDirection)),
43
+ shimmerDelay(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "shimmerDelay", rawProps, sourceProps.shimmerDelay)),
44
+ hybridRef(nitro::ReactProp<std::optional<std::function<void(const std::shared_ptr<HybridNitroTextViewSpec>& /* ref */)>>>::fromRawValue("NitroTextView", "hybridRef", rawProps, sourceProps.hybridRef)) { }
45
+
46
+ bool HybridNitroTextViewProps::filterObjectKeys(const std::string& propName) {
47
+ switch (hashString(propName)) {
48
+ case hashString("text"): return true;
49
+ case hashString("fontSize"): return true;
50
+ case hashString("fontWeight"): return true;
51
+ case hashString("fontFamily"): return true;
52
+ case hashString("color"): return true;
53
+ case hashString("letterSpacing"): return true;
54
+ case hashString("textAlign"): return true;
55
+ case hashString("rightToLeft"): return true;
56
+ case hashString("duration"): return true;
57
+ case hashString("easing"): return true;
58
+ case hashString("bounce"): return true;
59
+ case hashString("effect"): return true;
60
+ case hashString("respectReduceMotion"): return true;
61
+ case hashString("loading"): return true;
62
+ case hashString("shimmerColor"): return true;
63
+ case hashString("shimmerDuration"): return true;
64
+ case hashString("shimmerAngle"): return true;
65
+ case hashString("shimmerWidth"): return true;
66
+ case hashString("shimmerBaseColor"): return true;
67
+ case hashString("shimmerDirection"): return true;
68
+ case hashString("shimmerDelay"): return true;
69
+ case hashString("hybridRef"): return true;
70
+ default: return false;
71
+ }
72
+ }
73
+
74
+ } // namespace margelo::nitro::nitroinput::views