react-native-nitro-input 0.3.8 → 0.4.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 (108) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/README.md +6 -1
  3. package/android/src/main/java/com/margelo/nitro/nitroinput/DigitSlots.kt +143 -0
  4. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputMeasure.kt +52 -0
  5. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputView.kt +80 -80
  6. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberView.kt +18 -18
  7. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroTextView.kt +14 -14
  8. package/android/src/main/java/com/margelo/nitro/nitroinput/InputFonts.kt +244 -0
  9. package/android/src/main/java/com/margelo/nitro/nitroinput/InputSizing.kt +404 -0
  10. package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputView.kt +168 -338
  11. package/android/src/main/java/com/margelo/nitro/nitroinput/NitroNumberView.kt +178 -30
  12. package/ios/HybridNitroInputView.swift +73 -75
  13. package/ios/HybridNitroNumberView.swift +18 -18
  14. package/ios/HybridNitroTextView.swift +14 -14
  15. package/ios/InputSizing.swift +628 -0
  16. package/ios/NitroInputView.swift +180 -209
  17. package/ios/NitroNumberView.swift +98 -23
  18. package/lib/commonjs/nitrogen/generated/shared/json/NitroInputViewConfig.json +14 -8
  19. package/lib/commonjs/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
  20. package/lib/commonjs/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
  21. package/lib/commonjs/src/NitroInput.js +166 -23
  22. package/lib/commonjs/src/NitroNumber.js +1 -1
  23. package/lib/commonjs/src/NitroText.js +6 -6
  24. package/lib/commonjs/src/specs/NitroInputMeasure.nitro.js +2 -0
  25. package/lib/module/nitrogen/generated/shared/json/NitroInputViewConfig.json +14 -8
  26. package/lib/module/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
  27. package/lib/module/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
  28. package/lib/module/src/NitroInput.js +167 -24
  29. package/lib/module/src/NitroNumber.js +1 -1
  30. package/lib/module/src/NitroText.js +6 -6
  31. package/lib/module/src/specs/NitroInputMeasure.nitro.js +1 -0
  32. package/lib/typescript/src/NitroInput.d.ts +20 -16
  33. package/lib/typescript/src/specs/NitroInput.nitro.d.ts +21 -8
  34. package/lib/typescript/src/specs/NitroInputMeasure.nitro.d.ts +69 -0
  35. package/lib/typescript/src/specs/NitroNumber.nitro.d.ts +6 -6
  36. package/lib/typescript/src/specs/NitroText.nitro.d.ts +6 -6
  37. package/nitro.json +10 -0
  38. package/nitrogen/generated/android/NitroInput+autolinking.cmake +2 -0
  39. package/nitrogen/generated/android/NitroInputOnLoad.cpp +16 -0
  40. package/nitrogen/generated/android/c++/JHybridNitroInputMeasureSpec.cpp +93 -0
  41. package/nitrogen/generated/android/c++/JHybridNitroInputMeasureSpec.hpp +63 -0
  42. package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.cpp +94 -40
  43. package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.hpp +28 -16
  44. package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.cpp +30 -30
  45. package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.hpp +12 -12
  46. package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.cpp +30 -30
  47. package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.hpp +12 -12
  48. package/nitrogen/generated/android/c++/JNitroInputSize.hpp +61 -0
  49. package/nitrogen/generated/android/c++/JNitroInputSizing.hpp +292 -0
  50. package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.cpp +54 -24
  51. package/nitrogen/generated/android/c++/views/JHybridNitroNumberViewStateUpdater.cpp +18 -18
  52. package/nitrogen/generated/android/c++/views/JHybridNitroTextViewStateUpdater.cpp +18 -18
  53. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputMeasureSpec.kt +56 -0
  54. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputViewSpec.kt +44 -8
  55. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberViewSpec.kt +6 -6
  56. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroTextViewSpec.kt +6 -6
  57. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputSize.kt +56 -0
  58. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputSizing.kt +256 -0
  59. package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.cpp +17 -0
  60. package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.hpp +29 -0
  61. package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Umbrella.hpp +11 -0
  62. package/nitrogen/generated/ios/NitroInputAutolinking.mm +8 -0
  63. package/nitrogen/generated/ios/NitroInputAutolinking.swift +12 -0
  64. package/nitrogen/generated/ios/c++/HybridNitroInputMeasureSpecSwift.cpp +11 -0
  65. package/nitrogen/generated/ios/c++/HybridNitroInputMeasureSpecSwift.hpp +112 -0
  66. package/nitrogen/generated/ios/c++/HybridNitroInputViewSpecSwift.hpp +68 -32
  67. package/nitrogen/generated/ios/c++/HybridNitroNumberViewSpecSwift.hpp +24 -24
  68. package/nitrogen/generated/ios/c++/HybridNitroTextViewSpecSwift.hpp +24 -24
  69. package/nitrogen/generated/ios/c++/views/HybridNitroInputViewComponent.mm +68 -32
  70. package/nitrogen/generated/ios/c++/views/HybridNitroNumberViewComponent.mm +24 -24
  71. package/nitrogen/generated/ios/c++/views/HybridNitroTextViewComponent.mm +24 -24
  72. package/nitrogen/generated/ios/swift/HybridNitroInputMeasureSpec.swift +55 -0
  73. package/nitrogen/generated/ios/swift/HybridNitroInputMeasureSpec_cxx.swift +138 -0
  74. package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec.swift +14 -8
  75. package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec_cxx.swift +90 -24
  76. package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec.swift +6 -6
  77. package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec_cxx.swift +18 -18
  78. package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec.swift +6 -6
  79. package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec_cxx.swift +18 -18
  80. package/nitrogen/generated/ios/swift/NitroInputSize.swift +34 -0
  81. package/nitrogen/generated/ios/swift/NitroInputSizing.swift +252 -0
  82. package/nitrogen/generated/shared/c++/HybridNitroInputMeasureSpec.cpp +21 -0
  83. package/nitrogen/generated/shared/c++/HybridNitroInputMeasureSpec.hpp +66 -0
  84. package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.cpp +28 -16
  85. package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.hpp +28 -16
  86. package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.cpp +12 -12
  87. package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.hpp +12 -12
  88. package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.cpp +12 -12
  89. package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.hpp +12 -12
  90. package/nitrogen/generated/shared/c++/NitroInputSize.hpp +87 -0
  91. package/nitrogen/generated/shared/c++/NitroInputSizing.hpp +271 -0
  92. package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.cpp +28 -16
  93. package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.hpp +42 -24
  94. package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.cpp +12 -12
  95. package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.hpp +18 -18
  96. package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.cpp +12 -12
  97. package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.hpp +18 -18
  98. package/nitrogen/generated/shared/json/NitroInputViewConfig.json +14 -8
  99. package/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
  100. package/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
  101. package/package.json +4 -2
  102. package/src/NitroInput.tsx +215 -64
  103. package/src/NitroNumber.tsx +6 -6
  104. package/src/NitroText.tsx +6 -6
  105. package/src/specs/NitroInput.nitro.ts +21 -8
  106. package/src/specs/NitroInputMeasure.nitro.ts +78 -0
  107. package/src/specs/NitroNumber.nitro.ts +6 -6
  108. package/src/specs/NitroText.nitro.ts +6 -6
@@ -116,8 +116,8 @@ namespace margelo::nitro::nitroinput {
116
116
  void setShimmerDirection(std::optional<NitroNumberShimmerDirection> shimmerDirection) override;
117
117
  std::optional<double> getShimmerDelay() override;
118
118
  void setShimmerDelay(std::optional<double> shimmerDelay) override;
119
- std::optional<double> getFontSize() override;
120
- void setFontSize(std::optional<double> fontSize) override;
119
+ std::optional<double> getTextSize() override;
120
+ void setTextSize(std::optional<double> textSize) override;
121
121
  std::optional<double> getPrefixFontSize() override;
122
122
  void setPrefixFontSize(std::optional<double> prefixFontSize) override;
123
123
  std::optional<double> getSuffixFontSize() override;
@@ -128,8 +128,8 @@ namespace margelo::nitro::nitroinput {
128
128
  void setPrefixAlign(std::optional<NitroNumberAffixAlign> prefixAlign) override;
129
129
  std::optional<NitroNumberAffixAlign> getSuffixAlign() override;
130
130
  void setSuffixAlign(std::optional<NitroNumberAffixAlign> suffixAlign) override;
131
- std::optional<double> getLetterSpacing() override;
132
- void setLetterSpacing(std::optional<double> letterSpacing) override;
131
+ std::optional<double> getTextLetterSpacing() override;
132
+ void setTextLetterSpacing(std::optional<double> textLetterSpacing) override;
133
133
  std::optional<double> getPrefixSpacing() override;
134
134
  void setPrefixSpacing(std::optional<double> prefixSpacing) override;
135
135
  std::optional<double> getSuffixSpacing() override;
@@ -174,14 +174,14 @@ namespace margelo::nitro::nitroinput {
174
174
  void setAllowFontScaling(std::optional<bool> allowFontScaling) override;
175
175
  std::optional<double> getMaxFontSizeMultiplier() override;
176
176
  void setMaxFontSizeMultiplier(std::optional<double> maxFontSizeMultiplier) override;
177
- std::optional<double> getFontWeight() override;
178
- void setFontWeight(std::optional<double> fontWeight) override;
179
- std::optional<std::string> getFontFamily() override;
180
- void setFontFamily(const std::optional<std::string>& fontFamily) override;
181
- std::optional<double> getColor() override;
182
- void setColor(std::optional<double> color) override;
183
- std::optional<NitroNumberTextAlign> getTextAlign() override;
184
- void setTextAlign(std::optional<NitroNumberTextAlign> textAlign) override;
177
+ std::optional<double> getTextWeight() override;
178
+ void setTextWeight(std::optional<double> textWeight) override;
179
+ std::optional<std::string> getTextFamily() override;
180
+ void setTextFamily(const std::optional<std::string>& textFamily) override;
181
+ std::optional<double> getTextColor() override;
182
+ void setTextColor(std::optional<double> textColor) override;
183
+ std::optional<NitroNumberTextAlign> getTextAlignment() override;
184
+ void setTextAlignment(std::optional<NitroNumberTextAlign> textAlignment) override;
185
185
  std::optional<bool> getRightToLeft() override;
186
186
  void setRightToLeft(std::optional<bool> rightToLeft) override;
187
187
  std::optional<std::function<void(double /* width */, double /* height */)>> getOnSizeChange() override;
@@ -66,59 +66,59 @@ namespace margelo::nitro::nitroinput {
66
66
  static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* text */)>("setText");
67
67
  method(_javaPart, jni::make_jstring(text));
68
68
  }
69
- std::optional<double> JHybridNitroTextViewSpec::getFontSize() {
70
- static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JDouble>()>("getFontSize");
69
+ std::optional<double> JHybridNitroTextViewSpec::getTextSize() {
70
+ static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JDouble>()>("getTextSize");
71
71
  auto __result = method(_javaPart);
72
72
  return __result != nullptr ? std::make_optional(__result->value()) : std::nullopt;
73
73
  }
74
- void JHybridNitroTextViewSpec::setFontSize(std::optional<double> fontSize) {
75
- static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JDouble> /* fontSize */)>("setFontSize");
76
- method(_javaPart, fontSize.has_value() ? jni::JDouble::valueOf(fontSize.value()) : nullptr);
74
+ void JHybridNitroTextViewSpec::setTextSize(std::optional<double> textSize) {
75
+ static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JDouble> /* textSize */)>("setTextSize");
76
+ method(_javaPart, textSize.has_value() ? jni::JDouble::valueOf(textSize.value()) : nullptr);
77
77
  }
78
- std::optional<double> JHybridNitroTextViewSpec::getFontWeight() {
79
- static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JDouble>()>("getFontWeight");
78
+ std::optional<double> JHybridNitroTextViewSpec::getTextWeight() {
79
+ static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JDouble>()>("getTextWeight");
80
80
  auto __result = method(_javaPart);
81
81
  return __result != nullptr ? std::make_optional(__result->value()) : std::nullopt;
82
82
  }
83
- void JHybridNitroTextViewSpec::setFontWeight(std::optional<double> fontWeight) {
84
- static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JDouble> /* fontWeight */)>("setFontWeight");
85
- method(_javaPart, fontWeight.has_value() ? jni::JDouble::valueOf(fontWeight.value()) : nullptr);
83
+ void JHybridNitroTextViewSpec::setTextWeight(std::optional<double> textWeight) {
84
+ static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JDouble> /* textWeight */)>("setTextWeight");
85
+ method(_javaPart, textWeight.has_value() ? jni::JDouble::valueOf(textWeight.value()) : nullptr);
86
86
  }
87
- std::optional<std::string> JHybridNitroTextViewSpec::getFontFamily() {
88
- static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getFontFamily");
87
+ std::optional<std::string> JHybridNitroTextViewSpec::getTextFamily() {
88
+ static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getTextFamily");
89
89
  auto __result = method(_javaPart);
90
90
  return __result != nullptr ? std::make_optional(__result->toStdString()) : std::nullopt;
91
91
  }
92
- void JHybridNitroTextViewSpec::setFontFamily(const std::optional<std::string>& fontFamily) {
93
- static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* fontFamily */)>("setFontFamily");
94
- method(_javaPart, fontFamily.has_value() ? jni::make_jstring(fontFamily.value()) : nullptr);
92
+ void JHybridNitroTextViewSpec::setTextFamily(const std::optional<std::string>& textFamily) {
93
+ static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* textFamily */)>("setTextFamily");
94
+ method(_javaPart, textFamily.has_value() ? jni::make_jstring(textFamily.value()) : nullptr);
95
95
  }
96
- std::optional<double> JHybridNitroTextViewSpec::getColor() {
97
- static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JDouble>()>("getColor");
96
+ std::optional<double> JHybridNitroTextViewSpec::getTextColor() {
97
+ static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JDouble>()>("getTextColor");
98
98
  auto __result = method(_javaPart);
99
99
  return __result != nullptr ? std::make_optional(__result->value()) : std::nullopt;
100
100
  }
101
- void JHybridNitroTextViewSpec::setColor(std::optional<double> color) {
102
- static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JDouble> /* color */)>("setColor");
103
- method(_javaPart, color.has_value() ? jni::JDouble::valueOf(color.value()) : nullptr);
101
+ void JHybridNitroTextViewSpec::setTextColor(std::optional<double> textColor) {
102
+ static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JDouble> /* textColor */)>("setTextColor");
103
+ method(_javaPart, textColor.has_value() ? jni::JDouble::valueOf(textColor.value()) : nullptr);
104
104
  }
105
- std::optional<double> JHybridNitroTextViewSpec::getLetterSpacing() {
106
- static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JDouble>()>("getLetterSpacing");
105
+ std::optional<double> JHybridNitroTextViewSpec::getTextLetterSpacing() {
106
+ static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JDouble>()>("getTextLetterSpacing");
107
107
  auto __result = method(_javaPart);
108
108
  return __result != nullptr ? std::make_optional(__result->value()) : std::nullopt;
109
109
  }
110
- void JHybridNitroTextViewSpec::setLetterSpacing(std::optional<double> letterSpacing) {
111
- static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JDouble> /* letterSpacing */)>("setLetterSpacing");
112
- method(_javaPart, letterSpacing.has_value() ? jni::JDouble::valueOf(letterSpacing.value()) : nullptr);
110
+ void JHybridNitroTextViewSpec::setTextLetterSpacing(std::optional<double> textLetterSpacing) {
111
+ static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JDouble> /* textLetterSpacing */)>("setTextLetterSpacing");
112
+ method(_javaPart, textLetterSpacing.has_value() ? jni::JDouble::valueOf(textLetterSpacing.value()) : nullptr);
113
113
  }
114
- std::optional<NitroNumberTextAlign> JHybridNitroTextViewSpec::getTextAlign() {
115
- static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroNumberTextAlign>()>("getTextAlign");
114
+ std::optional<NitroNumberTextAlign> JHybridNitroTextViewSpec::getTextAlignment() {
115
+ static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroNumberTextAlign>()>("getTextAlignment");
116
116
  auto __result = method(_javaPart);
117
117
  return __result != nullptr ? std::make_optional(__result->toCpp()) : std::nullopt;
118
118
  }
119
- void JHybridNitroTextViewSpec::setTextAlign(std::optional<NitroNumberTextAlign> textAlign) {
120
- static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroNumberTextAlign> /* textAlign */)>("setTextAlign");
121
- method(_javaPart, textAlign.has_value() ? JNitroNumberTextAlign::fromCpp(textAlign.value()) : nullptr);
119
+ void JHybridNitroTextViewSpec::setTextAlignment(std::optional<NitroNumberTextAlign> textAlignment) {
120
+ static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroNumberTextAlign> /* textAlignment */)>("setTextAlignment");
121
+ method(_javaPart, textAlignment.has_value() ? JNitroNumberTextAlign::fromCpp(textAlignment.value()) : nullptr);
122
122
  }
123
123
  std::optional<bool> JHybridNitroTextViewSpec::getRightToLeft() {
124
124
  static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JBoolean>()>("getRightToLeft");
@@ -52,18 +52,18 @@ namespace margelo::nitro::nitroinput {
52
52
  // Properties
53
53
  std::string getText() override;
54
54
  void setText(const std::string& text) override;
55
- std::optional<double> getFontSize() override;
56
- void setFontSize(std::optional<double> fontSize) override;
57
- std::optional<double> getFontWeight() override;
58
- void setFontWeight(std::optional<double> fontWeight) override;
59
- std::optional<std::string> getFontFamily() override;
60
- void setFontFamily(const std::optional<std::string>& fontFamily) override;
61
- std::optional<double> getColor() override;
62
- void setColor(std::optional<double> color) override;
63
- std::optional<double> getLetterSpacing() override;
64
- void setLetterSpacing(std::optional<double> letterSpacing) override;
65
- std::optional<NitroNumberTextAlign> getTextAlign() override;
66
- void setTextAlign(std::optional<NitroNumberTextAlign> textAlign) override;
55
+ std::optional<double> getTextSize() override;
56
+ void setTextSize(std::optional<double> textSize) override;
57
+ std::optional<double> getTextWeight() override;
58
+ void setTextWeight(std::optional<double> textWeight) override;
59
+ std::optional<std::string> getTextFamily() override;
60
+ void setTextFamily(const std::optional<std::string>& textFamily) override;
61
+ std::optional<double> getTextColor() override;
62
+ void setTextColor(std::optional<double> textColor) override;
63
+ std::optional<double> getTextLetterSpacing() override;
64
+ void setTextLetterSpacing(std::optional<double> textLetterSpacing) override;
65
+ std::optional<NitroNumberTextAlign> getTextAlignment() override;
66
+ void setTextAlignment(std::optional<NitroNumberTextAlign> textAlignment) override;
67
67
  std::optional<bool> getRightToLeft() override;
68
68
  void setRightToLeft(std::optional<bool> rightToLeft) override;
69
69
  std::optional<double> getDuration() override;
@@ -0,0 +1,61 @@
1
+ ///
2
+ /// JNitroInputSize.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
+ #include <fbjni/fbjni.h>
11
+ #include "NitroInputSize.hpp"
12
+
13
+
14
+
15
+ namespace margelo::nitro::nitroinput {
16
+
17
+ using namespace facebook;
18
+
19
+ /**
20
+ * The C++ JNI bridge between the C++ struct "NitroInputSize" and the Kotlin data class "NitroInputSize".
21
+ */
22
+ struct JNitroInputSize final: public jni::JavaClass<JNitroInputSize> {
23
+ public:
24
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitroinput/NitroInputSize;";
25
+
26
+ public:
27
+ /**
28
+ * Convert this Java/Kotlin-based struct to the C++ struct NitroInputSize by copying all values to C++.
29
+ */
30
+ [[maybe_unused]]
31
+ [[nodiscard]]
32
+ NitroInputSize toCpp() const {
33
+ static const auto clazz = javaClassStatic();
34
+ static const auto fieldWidth = clazz->getField<double>("width");
35
+ double width = this->getFieldValue(fieldWidth);
36
+ static const auto fieldHeight = clazz->getField<double>("height");
37
+ double height = this->getFieldValue(fieldHeight);
38
+ return NitroInputSize(
39
+ width,
40
+ height
41
+ );
42
+ }
43
+
44
+ public:
45
+ /**
46
+ * Create a Java/Kotlin-based struct by copying all values from the given C++ struct to Java.
47
+ */
48
+ [[maybe_unused]]
49
+ static jni::local_ref<JNitroInputSize::javaobject> fromCpp(const NitroInputSize& value) {
50
+ using JSignature = JNitroInputSize(double, double);
51
+ static const auto clazz = javaClassStatic();
52
+ static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
53
+ return create(
54
+ clazz,
55
+ value.width,
56
+ value.height
57
+ );
58
+ }
59
+ };
60
+
61
+ } // namespace margelo::nitro::nitroinput
@@ -0,0 +1,292 @@
1
+ ///
2
+ /// JNitroInputSizing.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
+ #include <fbjni/fbjni.h>
11
+ #include "NitroInputSizing.hpp"
12
+
13
+ #include "JNitroInputCharacterMapping.hpp"
14
+ #include "JNitroInputLabelBehavior.hpp"
15
+ #include "JNitroInputMaskAffinity.hpp"
16
+ #include "JNitroInputMode.hpp"
17
+ #include "JNitroInputNotation.hpp"
18
+ #include "JNitroInputSignPlacement.hpp"
19
+ #include "JNitroInputTextCase.hpp"
20
+ #include "JNitroInputVariant.hpp"
21
+ #include "NitroInputCharacterMapping.hpp"
22
+ #include "NitroInputLabelBehavior.hpp"
23
+ #include "NitroInputMaskAffinity.hpp"
24
+ #include "NitroInputMode.hpp"
25
+ #include "NitroInputNotation.hpp"
26
+ #include "NitroInputSignPlacement.hpp"
27
+ #include "NitroInputTextCase.hpp"
28
+ #include "NitroInputVariant.hpp"
29
+ #include <string>
30
+ #include <vector>
31
+
32
+ namespace margelo::nitro::nitroinput {
33
+
34
+ using namespace facebook;
35
+
36
+ /**
37
+ * The C++ JNI bridge between the C++ struct "NitroInputSizing" and the Kotlin data class "NitroInputSizing".
38
+ */
39
+ struct JNitroInputSizing final: public jni::JavaClass<JNitroInputSizing> {
40
+ public:
41
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitroinput/NitroInputSizing;";
42
+
43
+ public:
44
+ /**
45
+ * Convert this Java/Kotlin-based struct to the C++ struct NitroInputSizing by copying all values to C++.
46
+ */
47
+ [[maybe_unused]]
48
+ [[nodiscard]]
49
+ NitroInputSizing toCpp() const {
50
+ static const auto clazz = javaClassStatic();
51
+ static const auto fieldText = clazz->getField<jni::JString>("text");
52
+ jni::local_ref<jni::JString> text = this->getFieldValue(fieldText);
53
+ static const auto fieldMode = clazz->getField<JNitroInputMode>("mode");
54
+ jni::local_ref<JNitroInputMode> mode = this->getFieldValue(fieldMode);
55
+ static const auto fieldPlain = clazz->getField<jboolean>("plain");
56
+ jboolean plain = this->getFieldValue(fieldPlain);
57
+ static const auto fieldMultiline = clazz->getField<jboolean>("multiline");
58
+ jboolean multiline = this->getFieldValue(fieldMultiline);
59
+ static const auto fieldSecureTextEntry = clazz->getField<jboolean>("secureTextEntry");
60
+ jboolean secureTextEntry = this->getFieldValue(fieldSecureTextEntry);
61
+ static const auto fieldMaxLength = clazz->getField<double>("maxLength");
62
+ double maxLength = this->getFieldValue(fieldMaxLength);
63
+ static const auto fieldFractionDigits = clazz->getField<double>("fractionDigits");
64
+ double fractionDigits = this->getFieldValue(fieldFractionDigits);
65
+ static const auto fieldMaxIntegerDigits = clazz->getField<double>("maxIntegerDigits");
66
+ double maxIntegerDigits = this->getFieldValue(fieldMaxIntegerDigits);
67
+ static const auto fieldGroupingSeparator = clazz->getField<jni::JString>("groupingSeparator");
68
+ jni::local_ref<jni::JString> groupingSeparator = this->getFieldValue(fieldGroupingSeparator);
69
+ static const auto fieldDecimalSeparator = clazz->getField<jni::JString>("decimalSeparator");
70
+ jni::local_ref<jni::JString> decimalSeparator = this->getFieldValue(fieldDecimalSeparator);
71
+ static const auto fieldPrefix = clazz->getField<jni::JString>("prefix");
72
+ jni::local_ref<jni::JString> prefix = this->getFieldValue(fieldPrefix);
73
+ static const auto fieldSuffix = clazz->getField<jni::JString>("suffix");
74
+ jni::local_ref<jni::JString> suffix = this->getFieldValue(fieldSuffix);
75
+ static const auto fieldSignPlacement = clazz->getField<JNitroInputSignPlacement>("signPlacement");
76
+ jni::local_ref<JNitroInputSignPlacement> signPlacement = this->getFieldValue(fieldSignPlacement);
77
+ static const auto fieldPlaceholder = clazz->getField<jni::JString>("placeholder");
78
+ jni::local_ref<jni::JString> placeholder = this->getFieldValue(fieldPlaceholder);
79
+ static const auto fieldMask = clazz->getField<jni::JString>("mask");
80
+ jni::local_ref<jni::JString> mask = this->getFieldValue(fieldMask);
81
+ static const auto fieldMaskNotations = clazz->getField<jni::JArrayClass<JNitroInputNotation>>("maskNotations");
82
+ jni::local_ref<jni::JArrayClass<JNitroInputNotation>> maskNotations = this->getFieldValue(fieldMaskNotations);
83
+ static const auto fieldMaskAutocomplete = clazz->getField<jboolean>("maskAutocomplete");
84
+ jboolean maskAutocomplete = this->getFieldValue(fieldMaskAutocomplete);
85
+ static const auto fieldMaskAutoSkip = clazz->getField<jboolean>("maskAutoSkip");
86
+ jboolean maskAutoSkip = this->getFieldValue(fieldMaskAutoSkip);
87
+ static const auto fieldMaskAffinityFormats = clazz->getField<jni::JArrayClass<jni::JString>>("maskAffinityFormats");
88
+ jni::local_ref<jni::JArrayClass<jni::JString>> maskAffinityFormats = this->getFieldValue(fieldMaskAffinityFormats);
89
+ static const auto fieldMaskAffinityStrategy = clazz->getField<JNitroInputMaskAffinity>("maskAffinityStrategy");
90
+ jni::local_ref<JNitroInputMaskAffinity> maskAffinityStrategy = this->getFieldValue(fieldMaskAffinityStrategy);
91
+ static const auto fieldMaskTextCase = clazz->getField<JNitroInputTextCase>("maskTextCase");
92
+ jni::local_ref<JNitroInputTextCase> maskTextCase = this->getFieldValue(fieldMaskTextCase);
93
+ static const auto fieldMaskCharacterMap = clazz->getField<jni::JArrayClass<JNitroInputCharacterMapping>>("maskCharacterMap");
94
+ jni::local_ref<jni::JArrayClass<JNitroInputCharacterMapping>> maskCharacterMap = this->getFieldValue(fieldMaskCharacterMap);
95
+ static const auto fieldMaskSlotPlaceholder = clazz->getField<jni::JString>("maskSlotPlaceholder");
96
+ jni::local_ref<jni::JString> maskSlotPlaceholder = this->getFieldValue(fieldMaskSlotPlaceholder);
97
+ static const auto fieldKeepPlaceholder = clazz->getField<jboolean>("keepPlaceholder");
98
+ jboolean keepPlaceholder = this->getFieldValue(fieldKeepPlaceholder);
99
+ static const auto fieldTextSize = clazz->getField<double>("textSize");
100
+ double textSize = this->getFieldValue(fieldTextSize);
101
+ static const auto fieldTextLineHeight = clazz->getField<double>("textLineHeight");
102
+ double textLineHeight = this->getFieldValue(fieldTextLineHeight);
103
+ static const auto fieldPrefixFontSize = clazz->getField<double>("prefixFontSize");
104
+ double prefixFontSize = this->getFieldValue(fieldPrefixFontSize);
105
+ static const auto fieldSuffixFontSize = clazz->getField<double>("suffixFontSize");
106
+ double suffixFontSize = this->getFieldValue(fieldSuffixFontSize);
107
+ static const auto fieldTextWeight = clazz->getField<double>("textWeight");
108
+ double textWeight = this->getFieldValue(fieldTextWeight);
109
+ static const auto fieldTextFamily = clazz->getField<jni::JString>("textFamily");
110
+ jni::local_ref<jni::JString> textFamily = this->getFieldValue(fieldTextFamily);
111
+ static const auto fieldTextLetterSpacing = clazz->getField<double>("textLetterSpacing");
112
+ double textLetterSpacing = this->getFieldValue(fieldTextLetterSpacing);
113
+ static const auto fieldTabularNums = clazz->getField<jboolean>("tabularNums");
114
+ jboolean tabularNums = this->getFieldValue(fieldTabularNums);
115
+ static const auto fieldSlotDigits = clazz->getField<jboolean>("slotDigits");
116
+ jboolean slotDigits = this->getFieldValue(fieldSlotDigits);
117
+ static const auto fieldPrefixSpacing = clazz->getField<double>("prefixSpacing");
118
+ double prefixSpacing = this->getFieldValue(fieldPrefixSpacing);
119
+ static const auto fieldSuffixSpacing = clazz->getField<double>("suffixSpacing");
120
+ double suffixSpacing = this->getFieldValue(fieldSuffixSpacing);
121
+ static const auto fieldAllowFontScaling = clazz->getField<jboolean>("allowFontScaling");
122
+ jboolean allowFontScaling = this->getFieldValue(fieldAllowFontScaling);
123
+ static const auto fieldMaxFontSizeMultiplier = clazz->getField<double>("maxFontSizeMultiplier");
124
+ double maxFontSizeMultiplier = this->getFieldValue(fieldMaxFontSizeMultiplier);
125
+ static const auto fieldVariant = clazz->getField<JNitroInputVariant>("variant");
126
+ jni::local_ref<JNitroInputVariant> variant = this->getFieldValue(fieldVariant);
127
+ static const auto fieldLabel = clazz->getField<jni::JString>("label");
128
+ jni::local_ref<jni::JString> label = this->getFieldValue(fieldLabel);
129
+ static const auto fieldLabelBehavior = clazz->getField<JNitroInputLabelBehavior>("labelBehavior");
130
+ jni::local_ref<JNitroInputLabelBehavior> labelBehavior = this->getFieldValue(fieldLabelBehavior);
131
+ static const auto fieldLabelFontSize = clazz->getField<double>("labelFontSize");
132
+ double labelFontSize = this->getFieldValue(fieldLabelFontSize);
133
+ static const auto fieldCornerRadius = clazz->getField<double>("cornerRadius");
134
+ double cornerRadius = this->getFieldValue(fieldCornerRadius);
135
+ return NitroInputSizing(
136
+ text->toStdString(),
137
+ mode->toCpp(),
138
+ static_cast<bool>(plain),
139
+ static_cast<bool>(multiline),
140
+ static_cast<bool>(secureTextEntry),
141
+ maxLength,
142
+ fractionDigits,
143
+ maxIntegerDigits,
144
+ groupingSeparator->toStdString(),
145
+ decimalSeparator->toStdString(),
146
+ prefix->toStdString(),
147
+ suffix->toStdString(),
148
+ signPlacement->toCpp(),
149
+ placeholder->toStdString(),
150
+ mask->toStdString(),
151
+ [&](auto&& __input) {
152
+ size_t __size = __input->size();
153
+ std::vector<NitroInputNotation> __vector;
154
+ __vector.reserve(__size);
155
+ for (size_t __i = 0; __i < __size; __i++) {
156
+ auto __element = __input->getElement(__i);
157
+ __vector.push_back(__element->toCpp());
158
+ }
159
+ return __vector;
160
+ }(maskNotations),
161
+ static_cast<bool>(maskAutocomplete),
162
+ static_cast<bool>(maskAutoSkip),
163
+ [&](auto&& __input) {
164
+ size_t __size = __input->size();
165
+ std::vector<std::string> __vector;
166
+ __vector.reserve(__size);
167
+ for (size_t __i = 0; __i < __size; __i++) {
168
+ auto __element = __input->getElement(__i);
169
+ __vector.push_back(__element->toStdString());
170
+ }
171
+ return __vector;
172
+ }(maskAffinityFormats),
173
+ maskAffinityStrategy->toCpp(),
174
+ maskTextCase->toCpp(),
175
+ [&](auto&& __input) {
176
+ size_t __size = __input->size();
177
+ std::vector<NitroInputCharacterMapping> __vector;
178
+ __vector.reserve(__size);
179
+ for (size_t __i = 0; __i < __size; __i++) {
180
+ auto __element = __input->getElement(__i);
181
+ __vector.push_back(__element->toCpp());
182
+ }
183
+ return __vector;
184
+ }(maskCharacterMap),
185
+ maskSlotPlaceholder->toStdString(),
186
+ static_cast<bool>(keepPlaceholder),
187
+ textSize,
188
+ textLineHeight,
189
+ prefixFontSize,
190
+ suffixFontSize,
191
+ textWeight,
192
+ textFamily->toStdString(),
193
+ textLetterSpacing,
194
+ static_cast<bool>(tabularNums),
195
+ static_cast<bool>(slotDigits),
196
+ prefixSpacing,
197
+ suffixSpacing,
198
+ static_cast<bool>(allowFontScaling),
199
+ maxFontSizeMultiplier,
200
+ variant->toCpp(),
201
+ label->toStdString(),
202
+ labelBehavior->toCpp(),
203
+ labelFontSize,
204
+ cornerRadius
205
+ );
206
+ }
207
+
208
+ public:
209
+ /**
210
+ * Create a Java/Kotlin-based struct by copying all values from the given C++ struct to Java.
211
+ */
212
+ [[maybe_unused]]
213
+ static jni::local_ref<JNitroInputSizing::javaobject> fromCpp(const NitroInputSizing& value) {
214
+ using JSignature = JNitroInputSizing(jni::alias_ref<jni::JString>, jni::alias_ref<JNitroInputMode>, jboolean, jboolean, jboolean, double, double, double, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<JNitroInputSignPlacement>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JArrayClass<JNitroInputNotation>>, jboolean, jboolean, jni::alias_ref<jni::JArrayClass<jni::JString>>, jni::alias_ref<JNitroInputMaskAffinity>, jni::alias_ref<JNitroInputTextCase>, jni::alias_ref<jni::JArrayClass<JNitroInputCharacterMapping>>, jni::alias_ref<jni::JString>, jboolean, double, double, double, double, double, jni::alias_ref<jni::JString>, double, jboolean, jboolean, double, double, jboolean, double, jni::alias_ref<JNitroInputVariant>, jni::alias_ref<jni::JString>, jni::alias_ref<JNitroInputLabelBehavior>, double, double);
215
+ static const auto clazz = javaClassStatic();
216
+ static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
217
+ return create(
218
+ clazz,
219
+ jni::make_jstring(value.text),
220
+ JNitroInputMode::fromCpp(value.mode),
221
+ value.plain,
222
+ value.multiline,
223
+ value.secureTextEntry,
224
+ value.maxLength,
225
+ value.fractionDigits,
226
+ value.maxIntegerDigits,
227
+ jni::make_jstring(value.groupingSeparator),
228
+ jni::make_jstring(value.decimalSeparator),
229
+ jni::make_jstring(value.prefix),
230
+ jni::make_jstring(value.suffix),
231
+ JNitroInputSignPlacement::fromCpp(value.signPlacement),
232
+ jni::make_jstring(value.placeholder),
233
+ jni::make_jstring(value.mask),
234
+ [&](auto&& __input) {
235
+ size_t __size = __input.size();
236
+ jni::local_ref<jni::JArrayClass<JNitroInputNotation>> __array = jni::JArrayClass<JNitroInputNotation>::newArray(__size);
237
+ for (size_t __i = 0; __i < __size; __i++) {
238
+ const auto& __element = __input[__i];
239
+ auto __elementJni = JNitroInputNotation::fromCpp(__element);
240
+ __array->setElement(__i, *__elementJni);
241
+ }
242
+ return __array;
243
+ }(value.maskNotations),
244
+ value.maskAutocomplete,
245
+ value.maskAutoSkip,
246
+ [&](auto&& __input) {
247
+ size_t __size = __input.size();
248
+ jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
249
+ for (size_t __i = 0; __i < __size; __i++) {
250
+ const auto& __element = __input[__i];
251
+ auto __elementJni = jni::make_jstring(__element);
252
+ __array->setElement(__i, *__elementJni);
253
+ }
254
+ return __array;
255
+ }(value.maskAffinityFormats),
256
+ JNitroInputMaskAffinity::fromCpp(value.maskAffinityStrategy),
257
+ JNitroInputTextCase::fromCpp(value.maskTextCase),
258
+ [&](auto&& __input) {
259
+ size_t __size = __input.size();
260
+ jni::local_ref<jni::JArrayClass<JNitroInputCharacterMapping>> __array = jni::JArrayClass<JNitroInputCharacterMapping>::newArray(__size);
261
+ for (size_t __i = 0; __i < __size; __i++) {
262
+ const auto& __element = __input[__i];
263
+ auto __elementJni = JNitroInputCharacterMapping::fromCpp(__element);
264
+ __array->setElement(__i, *__elementJni);
265
+ }
266
+ return __array;
267
+ }(value.maskCharacterMap),
268
+ jni::make_jstring(value.maskSlotPlaceholder),
269
+ value.keepPlaceholder,
270
+ value.textSize,
271
+ value.textLineHeight,
272
+ value.prefixFontSize,
273
+ value.suffixFontSize,
274
+ value.textWeight,
275
+ jni::make_jstring(value.textFamily),
276
+ value.textLetterSpacing,
277
+ value.tabularNums,
278
+ value.slotDigits,
279
+ value.prefixSpacing,
280
+ value.suffixSpacing,
281
+ value.allowFontScaling,
282
+ value.maxFontSizeMultiplier,
283
+ JNitroInputVariant::fromCpp(value.variant),
284
+ jni::make_jstring(value.label),
285
+ JNitroInputLabelBehavior::fromCpp(value.labelBehavior),
286
+ value.labelFontSize,
287
+ value.cornerRadius
288
+ );
289
+ }
290
+ };
291
+
292
+ } // namespace margelo::nitro::nitroinput
@@ -234,9 +234,19 @@ void JHybridNitroInputViewStateUpdater::updateViewProps(jni::alias_ref<jni::JCla
234
234
  hybridView->setSuffixAlign(newProps->suffixAlign.get());
235
235
  }
236
236
  if (oldProps == nullptr
237
- ? newProps->letterSpacing.isProvided()
238
- : !newProps->letterSpacing.hasSameValue(oldProps->letterSpacing)) {
239
- hybridView->setLetterSpacing(newProps->letterSpacing.get());
237
+ ? newProps->textLetterSpacing.isProvided()
238
+ : !newProps->textLetterSpacing.hasSameValue(oldProps->textLetterSpacing)) {
239
+ hybridView->setTextLetterSpacing(newProps->textLetterSpacing.get());
240
+ }
241
+ if (oldProps == nullptr
242
+ ? newProps->tabularNums.isProvided()
243
+ : !newProps->tabularNums.hasSameValue(oldProps->tabularNums)) {
244
+ hybridView->setTabularNums(newProps->tabularNums.get());
245
+ }
246
+ if (oldProps == nullptr
247
+ ? newProps->slotDigits.isProvided()
248
+ : !newProps->slotDigits.hasSameValue(oldProps->slotDigits)) {
249
+ hybridView->setSlotDigits(newProps->slotDigits.get());
240
250
  }
241
251
  if (oldProps == nullptr
242
252
  ? newProps->prefixSpacing.isProvided()
@@ -289,34 +299,34 @@ void JHybridNitroInputViewStateUpdater::updateViewProps(jni::alias_ref<jni::JCla
289
299
  hybridView->setEffect(newProps->effect.get());
290
300
  }
291
301
  if (oldProps == nullptr
292
- ? newProps->fontSize.isProvided()
293
- : !newProps->fontSize.hasSameValue(oldProps->fontSize)) {
294
- hybridView->setFontSize(newProps->fontSize.get());
302
+ ? newProps->textSize.isProvided()
303
+ : !newProps->textSize.hasSameValue(oldProps->textSize)) {
304
+ hybridView->setTextSize(newProps->textSize.get());
295
305
  }
296
306
  if (oldProps == nullptr
297
- ? newProps->lineHeight.isProvided()
298
- : !newProps->lineHeight.hasSameValue(oldProps->lineHeight)) {
299
- hybridView->setLineHeight(newProps->lineHeight.get());
307
+ ? newProps->textLineHeight.isProvided()
308
+ : !newProps->textLineHeight.hasSameValue(oldProps->textLineHeight)) {
309
+ hybridView->setTextLineHeight(newProps->textLineHeight.get());
300
310
  }
301
311
  if (oldProps == nullptr
302
- ? newProps->fontWeight.isProvided()
303
- : !newProps->fontWeight.hasSameValue(oldProps->fontWeight)) {
304
- hybridView->setFontWeight(newProps->fontWeight.get());
312
+ ? newProps->textWeight.isProvided()
313
+ : !newProps->textWeight.hasSameValue(oldProps->textWeight)) {
314
+ hybridView->setTextWeight(newProps->textWeight.get());
305
315
  }
306
316
  if (oldProps == nullptr
307
- ? newProps->fontFamily.isProvided()
308
- : !newProps->fontFamily.hasSameValue(oldProps->fontFamily)) {
309
- hybridView->setFontFamily(newProps->fontFamily.get());
317
+ ? newProps->textFamily.isProvided()
318
+ : !newProps->textFamily.hasSameValue(oldProps->textFamily)) {
319
+ hybridView->setTextFamily(newProps->textFamily.get());
310
320
  }
311
321
  if (oldProps == nullptr
312
- ? newProps->color.isProvided()
313
- : !newProps->color.hasSameValue(oldProps->color)) {
314
- hybridView->setColor(newProps->color.get());
322
+ ? newProps->textColor.isProvided()
323
+ : !newProps->textColor.hasSameValue(oldProps->textColor)) {
324
+ hybridView->setTextColor(newProps->textColor.get());
315
325
  }
316
326
  if (oldProps == nullptr
317
- ? newProps->textAlign.isProvided()
318
- : !newProps->textAlign.hasSameValue(oldProps->textAlign)) {
319
- hybridView->setTextAlign(newProps->textAlign.get());
327
+ ? newProps->textAlignment.isProvided()
328
+ : !newProps->textAlignment.hasSameValue(oldProps->textAlignment)) {
329
+ hybridView->setTextAlignment(newProps->textAlignment.get());
320
330
  }
321
331
  if (oldProps == nullptr
322
332
  ? newProps->rightToLeft.isProvided()
@@ -394,9 +404,29 @@ void JHybridNitroInputViewStateUpdater::updateViewProps(jni::alias_ref<jni::JCla
394
404
  hybridView->setNumberOfLines(newProps->numberOfLines.get());
395
405
  }
396
406
  if (oldProps == nullptr
397
- ? newProps->textAlignVertical.isProvided()
398
- : !newProps->textAlignVertical.hasSameValue(oldProps->textAlignVertical)) {
399
- hybridView->setTextAlignVertical(newProps->textAlignVertical.get());
407
+ ? newProps->textVerticalAlignment.isProvided()
408
+ : !newProps->textVerticalAlignment.hasSameValue(oldProps->textVerticalAlignment)) {
409
+ hybridView->setTextVerticalAlignment(newProps->textVerticalAlignment.get());
410
+ }
411
+ if (oldProps == nullptr
412
+ ? newProps->textInsetLeft.isProvided()
413
+ : !newProps->textInsetLeft.hasSameValue(oldProps->textInsetLeft)) {
414
+ hybridView->setTextInsetLeft(newProps->textInsetLeft.get());
415
+ }
416
+ if (oldProps == nullptr
417
+ ? newProps->textInsetTop.isProvided()
418
+ : !newProps->textInsetTop.hasSameValue(oldProps->textInsetTop)) {
419
+ hybridView->setTextInsetTop(newProps->textInsetTop.get());
420
+ }
421
+ if (oldProps == nullptr
422
+ ? newProps->textInsetRight.isProvided()
423
+ : !newProps->textInsetRight.hasSameValue(oldProps->textInsetRight)) {
424
+ hybridView->setTextInsetRight(newProps->textInsetRight.get());
425
+ }
426
+ if (oldProps == nullptr
427
+ ? newProps->textInsetBottom.isProvided()
428
+ : !newProps->textInsetBottom.hasSameValue(oldProps->textInsetBottom)) {
429
+ hybridView->setTextInsetBottom(newProps->textInsetBottom.get());
400
430
  }
401
431
  if (oldProps == nullptr
402
432
  ? newProps->scrollEnabled.isProvided()