react-native-ios-translate-sheet 1.4.13 → 1.4.14

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 (32) hide show
  1. package/android/generated/java/com/facebook/react/viewmanagers/IOSTranslateSheetViewManagerDelegate.java +45 -0
  2. package/android/generated/java/com/facebook/react/viewmanagers/IOSTranslateSheetViewManagerInterface.java +22 -0
  3. package/android/generated/jni/CMakeLists.txt +28 -0
  4. package/android/generated/jni/RNIOSTranslateSheetViewSpec-generated.cpp +22 -0
  5. package/android/generated/jni/RNIOSTranslateSheetViewSpec.h +24 -0
  6. package/android/generated/jni/react/renderer/components/RNIOSTranslateSheetViewSpec/ComponentDescriptors.cpp +22 -0
  7. package/android/generated/jni/react/renderer/components/RNIOSTranslateSheetViewSpec/ComponentDescriptors.h +24 -0
  8. package/android/generated/jni/react/renderer/components/RNIOSTranslateSheetViewSpec/EventEmitters.cpp +33 -0
  9. package/android/generated/jni/react/renderer/components/RNIOSTranslateSheetViewSpec/EventEmitters.h +31 -0
  10. package/android/generated/jni/react/renderer/components/RNIOSTranslateSheetViewSpec/Props.cpp +67 -0
  11. package/android/generated/jni/react/renderer/components/RNIOSTranslateSheetViewSpec/Props.h +40 -0
  12. package/android/generated/jni/react/renderer/components/RNIOSTranslateSheetViewSpec/RNIOSTranslateSheetViewSpecJSI.h +19 -0
  13. package/android/generated/jni/react/renderer/components/RNIOSTranslateSheetViewSpec/ShadowNodes.cpp +17 -0
  14. package/android/generated/jni/react/renderer/components/RNIOSTranslateSheetViewSpec/ShadowNodes.h +32 -0
  15. package/android/generated/jni/react/renderer/components/RNIOSTranslateSheetViewSpec/States.cpp +16 -0
  16. package/android/generated/jni/react/renderer/components/RNIOSTranslateSheetViewSpec/States.h +20 -0
  17. package/ios/IOSTranslateSheetView.mm +4 -4
  18. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/ComponentDescriptors.cpp +22 -0
  19. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/ComponentDescriptors.h +24 -0
  20. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/EventEmitters.cpp +33 -0
  21. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/EventEmitters.h +31 -0
  22. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/Props.cpp +67 -0
  23. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/Props.h +40 -0
  24. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/RCTComponentViewHelpers.h +20 -0
  25. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/RNIOSTranslateSheetViewSpec-generated.mm +16 -0
  26. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/RNIOSTranslateSheetViewSpec.h +38 -0
  27. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/ShadowNodes.cpp +17 -0
  28. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/ShadowNodes.h +32 -0
  29. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/States.cpp +16 -0
  30. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpec/States.h +20 -0
  31. package/ios/generated/ReactCodegen/RNIOSTranslateSheetViewSpecJSI.h +19 -0
  32. package/package.json +10 -9
@@ -0,0 +1,45 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GeneratePropsJavaDelegate.js
8
+ */
9
+
10
+ package com.facebook.react.viewmanagers;
11
+
12
+ import android.view.View;
13
+ import androidx.annotation.Nullable;
14
+ import com.facebook.react.uimanager.BaseViewManager;
15
+ import com.facebook.react.uimanager.BaseViewManagerDelegate;
16
+ import com.facebook.react.uimanager.LayoutShadowNode;
17
+
18
+ @SuppressWarnings("deprecation")
19
+ public class IOSTranslateSheetViewManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & IOSTranslateSheetViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
20
+ public IOSTranslateSheetViewManagerDelegate(U viewManager) {
21
+ super(viewManager);
22
+ }
23
+ @Override
24
+ public void setProperty(T view, String propName, @Nullable Object value) {
25
+ switch (propName) {
26
+ case "text":
27
+ mViewManager.setText(view, value == null ? null : (String) value);
28
+ break;
29
+ case "isPresented":
30
+ mViewManager.setIsPresented(view, value == null ? false : (boolean) value);
31
+ break;
32
+ case "hasReplacementAction":
33
+ mViewManager.setHasReplacementAction(view, value == null ? false : (boolean) value);
34
+ break;
35
+ case "translateAnchorPointX":
36
+ mViewManager.setTranslateAnchorPointX(view, value == null ? 0f : ((Double) value).doubleValue());
37
+ break;
38
+ case "translateAnchorPointY":
39
+ mViewManager.setTranslateAnchorPointY(view, value == null ? 0f : ((Double) value).doubleValue());
40
+ break;
41
+ default:
42
+ super.setProperty(view, propName, value);
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GeneratePropsJavaInterface.js
8
+ */
9
+
10
+ package com.facebook.react.viewmanagers;
11
+
12
+ import android.view.View;
13
+ import androidx.annotation.Nullable;
14
+ import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface;
15
+
16
+ public interface IOSTranslateSheetViewManagerInterface<T extends View> extends ViewManagerWithGeneratedInterface {
17
+ void setText(T view, @Nullable String value);
18
+ void setIsPresented(T view, boolean value);
19
+ void setHasReplacementAction(T view, boolean value);
20
+ void setTranslateAnchorPointX(T view, double value);
21
+ void setTranslateAnchorPointY(T view, double value);
22
+ }
@@ -0,0 +1,28 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ cmake_minimum_required(VERSION 3.13)
7
+ set(CMAKE_VERBOSE_MAKEFILE on)
8
+
9
+ file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/RNIOSTranslateSheetViewSpec/*.cpp)
10
+
11
+ add_library(
12
+ react_codegen_RNIOSTranslateSheetViewSpec
13
+ OBJECT
14
+ ${react_codegen_SRCS}
15
+ )
16
+
17
+ target_include_directories(react_codegen_RNIOSTranslateSheetViewSpec PUBLIC . react/renderer/components/RNIOSTranslateSheetViewSpec)
18
+
19
+ target_link_libraries(
20
+ react_codegen_RNIOSTranslateSheetViewSpec
21
+ fbjni
22
+ jsi
23
+ # We need to link different libraries based on whether we are building rncore or not, that's necessary
24
+ # because we want to break a circular dependency between react_codegen_rncore and reactnative
25
+ reactnative
26
+ )
27
+
28
+ target_compile_reactnative_options(react_codegen_RNIOSTranslateSheetViewSpec PRIVATE)
@@ -0,0 +1,22 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateModuleJniCpp.js
9
+ */
10
+
11
+ #include "RNIOSTranslateSheetViewSpec.h"
12
+
13
+ namespace facebook::react {
14
+
15
+
16
+
17
+ std::shared_ptr<TurboModule> RNIOSTranslateSheetViewSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
18
+
19
+ return nullptr;
20
+ }
21
+
22
+ } // namespace facebook::react
@@ -0,0 +1,24 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateModuleJniH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include <ReactCommon/JavaTurboModule.h>
14
+ #include <ReactCommon/TurboModule.h>
15
+ #include <jsi/jsi.h>
16
+
17
+ namespace facebook::react {
18
+
19
+
20
+
21
+ JSI_EXPORT
22
+ std::shared_ptr<TurboModule> RNIOSTranslateSheetViewSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params);
23
+
24
+ } // namespace facebook::react
@@ -0,0 +1,22 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateComponentDescriptorCpp.js
9
+ */
10
+
11
+ #include "ComponentDescriptors.h"
12
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
13
+ #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
14
+
15
+ namespace facebook::react {
16
+
17
+ void RNIOSTranslateSheetViewSpec_registerComponentDescriptorsFromCodegen(
18
+ std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
19
+ registry->add(concreteComponentDescriptorProvider<IOSTranslateSheetViewComponentDescriptor>());
20
+ }
21
+
22
+ } // namespace facebook::react
@@ -0,0 +1,24 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateComponentDescriptorH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include "ShadowNodes.h"
14
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
+ #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
16
+
17
+ namespace facebook::react {
18
+
19
+ using IOSTranslateSheetViewComponentDescriptor = ConcreteComponentDescriptor<IOSTranslateSheetViewShadowNode>;
20
+
21
+ void RNIOSTranslateSheetViewSpec_registerComponentDescriptorsFromCodegen(
22
+ std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
23
+
24
+ } // namespace facebook::react
@@ -0,0 +1,33 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateEventEmitterCpp.js
9
+ */
10
+
11
+ #include "EventEmitters.h"
12
+
13
+
14
+ namespace facebook::react {
15
+
16
+ void IOSTranslateSheetViewEventEmitter::onHide(OnHide event) const {
17
+ dispatchEvent("hide", [](jsi::Runtime &runtime) {
18
+ auto payload = jsi::Object(runtime);
19
+
20
+ return payload;
21
+ });
22
+ }
23
+
24
+
25
+ void IOSTranslateSheetViewEventEmitter::onReplacementAction(OnReplacementAction event) const {
26
+ dispatchEvent("replacementAction", [event=std::move(event)](jsi::Runtime &runtime) {
27
+ auto payload = jsi::Object(runtime);
28
+ payload.setProperty(runtime, "text", event.text);
29
+ return payload;
30
+ });
31
+ }
32
+
33
+ } // namespace facebook::react
@@ -0,0 +1,31 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateEventEmitterH.js
9
+ */
10
+ #pragma once
11
+
12
+ #include <react/renderer/components/view/ViewEventEmitter.h>
13
+
14
+
15
+ namespace facebook::react {
16
+ class IOSTranslateSheetViewEventEmitter : public ViewEventEmitter {
17
+ public:
18
+ using ViewEventEmitter::ViewEventEmitter;
19
+
20
+ struct OnHide {
21
+
22
+ };
23
+
24
+ struct OnReplacementAction {
25
+ std::string text;
26
+ };
27
+ void onHide(OnHide value) const;
28
+
29
+ void onReplacementAction(OnReplacementAction value) const;
30
+ };
31
+ } // namespace facebook::react
@@ -0,0 +1,67 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GeneratePropsCpp.js
9
+ */
10
+
11
+ #include "Props.h"
12
+ #include <react/renderer/core/PropsParserContext.h>
13
+ #include <react/renderer/core/propsConversions.h>
14
+
15
+ namespace facebook::react {
16
+
17
+ IOSTranslateSheetViewProps::IOSTranslateSheetViewProps(
18
+ const PropsParserContext &context,
19
+ const IOSTranslateSheetViewProps &sourceProps,
20
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
21
+
22
+ text(convertRawProp(context, rawProps, "text", sourceProps.text, {})),
23
+ isPresented(convertRawProp(context, rawProps, "isPresented", sourceProps.isPresented, {false})),
24
+ hasReplacementAction(convertRawProp(context, rawProps, "hasReplacementAction", sourceProps.hasReplacementAction, {false})),
25
+ translateAnchorPointX(convertRawProp(context, rawProps, "translateAnchorPointX", sourceProps.translateAnchorPointX, {0.0})),
26
+ translateAnchorPointY(convertRawProp(context, rawProps, "translateAnchorPointY", sourceProps.translateAnchorPointY, {0.0})) {}
27
+
28
+ #ifdef RN_SERIALIZABLE_STATE
29
+ ComponentName IOSTranslateSheetViewProps::getDiffPropsImplementationTarget() const {
30
+ return "IOSTranslateSheetView";
31
+ }
32
+
33
+ folly::dynamic IOSTranslateSheetViewProps::getDiffProps(
34
+ const Props* prevProps) const {
35
+ static const auto defaultProps = IOSTranslateSheetViewProps();
36
+ const IOSTranslateSheetViewProps* oldProps = prevProps == nullptr
37
+ ? &defaultProps
38
+ : static_cast<const IOSTranslateSheetViewProps*>(prevProps);
39
+ if (this == oldProps) {
40
+ return folly::dynamic::object();
41
+ }
42
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
43
+
44
+ if (text != oldProps->text) {
45
+ result["text"] = text;
46
+ }
47
+
48
+ if (isPresented != oldProps->isPresented) {
49
+ result["isPresented"] = isPresented;
50
+ }
51
+
52
+ if (hasReplacementAction != oldProps->hasReplacementAction) {
53
+ result["hasReplacementAction"] = hasReplacementAction;
54
+ }
55
+
56
+ if ((translateAnchorPointX != oldProps->translateAnchorPointX) && !(std::isnan(translateAnchorPointX) && std::isnan(oldProps->translateAnchorPointX))) {
57
+ result["translateAnchorPointX"] = translateAnchorPointX;
58
+ }
59
+
60
+ if ((translateAnchorPointY != oldProps->translateAnchorPointY) && !(std::isnan(translateAnchorPointY) && std::isnan(oldProps->translateAnchorPointY))) {
61
+ result["translateAnchorPointY"] = translateAnchorPointY;
62
+ }
63
+ return result;
64
+ }
65
+ #endif
66
+
67
+ } // namespace facebook::react
@@ -0,0 +1,40 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GeneratePropsH.js
9
+ */
10
+ #pragma once
11
+
12
+ #include <react/renderer/components/view/ViewProps.h>
13
+ #include <react/renderer/core/PropsParserContext.h>
14
+ #include <react/renderer/debug/DebugStringConvertible.h>
15
+
16
+ namespace facebook::react {
17
+
18
+ class IOSTranslateSheetViewProps final : public ViewProps {
19
+ public:
20
+ IOSTranslateSheetViewProps() = default;
21
+ IOSTranslateSheetViewProps(const PropsParserContext& context, const IOSTranslateSheetViewProps &sourceProps, const RawProps &rawProps);
22
+
23
+ #pragma mark - Props
24
+
25
+ std::string text{};
26
+ bool isPresented{false};
27
+ bool hasReplacementAction{false};
28
+ double translateAnchorPointX{0.0};
29
+ double translateAnchorPointY{0.0};
30
+
31
+ #ifdef RN_SERIALIZABLE_STATE
32
+ ComponentName getDiffPropsImplementationTarget() const override;
33
+
34
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
35
+ #endif
36
+
37
+
38
+ };
39
+
40
+ } // namespace facebook::react
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleH.js
8
+ */
9
+
10
+ #pragma once
11
+
12
+ #include <ReactCommon/TurboModule.h>
13
+ #include <react/bridging/Bridging.h>
14
+
15
+ namespace facebook::react {
16
+
17
+
18
+
19
+ } // namespace facebook::react
@@ -0,0 +1,17 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateShadowNodeCpp.js
9
+ */
10
+
11
+ #include "ShadowNodes.h"
12
+
13
+ namespace facebook::react {
14
+
15
+ extern const char IOSTranslateSheetViewComponentName[] = "IOSTranslateSheetView";
16
+
17
+ } // namespace facebook::react
@@ -0,0 +1,32 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateShadowNodeH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include "EventEmitters.h"
14
+ #include "Props.h"
15
+ #include "States.h"
16
+ #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
+ #include <jsi/jsi.h>
18
+
19
+ namespace facebook::react {
20
+
21
+ JSI_EXPORT extern const char IOSTranslateSheetViewComponentName[];
22
+
23
+ /*
24
+ * `ShadowNode` for <IOSTranslateSheetView> component.
25
+ */
26
+ using IOSTranslateSheetViewShadowNode = ConcreteViewShadowNode<
27
+ IOSTranslateSheetViewComponentName,
28
+ IOSTranslateSheetViewProps,
29
+ IOSTranslateSheetViewEventEmitter,
30
+ IOSTranslateSheetViewState>;
31
+
32
+ } // namespace facebook::react
@@ -0,0 +1,16 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateStateCpp.js
9
+ */
10
+ #include "States.h"
11
+
12
+ namespace facebook::react {
13
+
14
+
15
+
16
+ } // namespace facebook::react
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateStateH.js
8
+ */
9
+ #pragma once
10
+
11
+ #include <react/renderer/core/StateData.h>
12
+ #ifdef RN_SERIALIZABLE_STATE
13
+ #include <folly/dynamic.h>
14
+ #endif
15
+
16
+ namespace facebook::react {
17
+
18
+ using IOSTranslateSheetViewState = StateData;
19
+
20
+ } // namespace facebook::react
@@ -9,10 +9,10 @@
9
9
  #import "IOSTranslateSheet-Swift.h"
10
10
  #endif
11
11
 
12
- #import "generated/RNIOSTranslateSheetViewSpec/ComponentDescriptors.h"
13
- #import "generated/RNIOSTranslateSheetViewSpec/EventEmitters.h"
14
- #import "generated/RNIOSTranslateSheetViewSpec/Props.h"
15
- #import "generated/RNIOSTranslateSheetViewSpec/RCTComponentViewHelpers.h"
12
+ #import "generated/ReactCodegen/RNIOSTranslateSheetViewSpec/ComponentDescriptors.h"
13
+ #import "generated/ReactCodegen/RNIOSTranslateSheetViewSpec/EventEmitters.h"
14
+ #import "generated/ReactCodegen/RNIOSTranslateSheetViewSpec/Props.h"
15
+ #import "generated/ReactCodegen/RNIOSTranslateSheetViewSpec/RCTComponentViewHelpers.h"
16
16
 
17
17
  using namespace facebook::react;
18
18
 
@@ -0,0 +1,22 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateComponentDescriptorCpp.js
9
+ */
10
+
11
+ #include "ComponentDescriptors.h"
12
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
13
+ #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
14
+
15
+ namespace facebook::react {
16
+
17
+ void RNIOSTranslateSheetViewSpec_registerComponentDescriptorsFromCodegen(
18
+ std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
19
+ registry->add(concreteComponentDescriptorProvider<IOSTranslateSheetViewComponentDescriptor>());
20
+ }
21
+
22
+ } // namespace facebook::react
@@ -0,0 +1,24 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateComponentDescriptorH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include "ShadowNodes.h"
14
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
+ #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
16
+
17
+ namespace facebook::react {
18
+
19
+ using IOSTranslateSheetViewComponentDescriptor = ConcreteComponentDescriptor<IOSTranslateSheetViewShadowNode>;
20
+
21
+ void RNIOSTranslateSheetViewSpec_registerComponentDescriptorsFromCodegen(
22
+ std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
23
+
24
+ } // namespace facebook::react
@@ -0,0 +1,33 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateEventEmitterCpp.js
9
+ */
10
+
11
+ #include "EventEmitters.h"
12
+
13
+
14
+ namespace facebook::react {
15
+
16
+ void IOSTranslateSheetViewEventEmitter::onHide(OnHide event) const {
17
+ dispatchEvent("hide", [](jsi::Runtime &runtime) {
18
+ auto payload = jsi::Object(runtime);
19
+
20
+ return payload;
21
+ });
22
+ }
23
+
24
+
25
+ void IOSTranslateSheetViewEventEmitter::onReplacementAction(OnReplacementAction event) const {
26
+ dispatchEvent("replacementAction", [event=std::move(event)](jsi::Runtime &runtime) {
27
+ auto payload = jsi::Object(runtime);
28
+ payload.setProperty(runtime, "text", event.text);
29
+ return payload;
30
+ });
31
+ }
32
+
33
+ } // namespace facebook::react
@@ -0,0 +1,31 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateEventEmitterH.js
9
+ */
10
+ #pragma once
11
+
12
+ #include <react/renderer/components/view/ViewEventEmitter.h>
13
+
14
+
15
+ namespace facebook::react {
16
+ class IOSTranslateSheetViewEventEmitter : public ViewEventEmitter {
17
+ public:
18
+ using ViewEventEmitter::ViewEventEmitter;
19
+
20
+ struct OnHide {
21
+
22
+ };
23
+
24
+ struct OnReplacementAction {
25
+ std::string text;
26
+ };
27
+ void onHide(OnHide value) const;
28
+
29
+ void onReplacementAction(OnReplacementAction value) const;
30
+ };
31
+ } // namespace facebook::react
@@ -0,0 +1,67 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GeneratePropsCpp.js
9
+ */
10
+
11
+ #include "Props.h"
12
+ #include <react/renderer/core/PropsParserContext.h>
13
+ #include <react/renderer/core/propsConversions.h>
14
+
15
+ namespace facebook::react {
16
+
17
+ IOSTranslateSheetViewProps::IOSTranslateSheetViewProps(
18
+ const PropsParserContext &context,
19
+ const IOSTranslateSheetViewProps &sourceProps,
20
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
21
+
22
+ text(convertRawProp(context, rawProps, "text", sourceProps.text, {})),
23
+ isPresented(convertRawProp(context, rawProps, "isPresented", sourceProps.isPresented, {false})),
24
+ hasReplacementAction(convertRawProp(context, rawProps, "hasReplacementAction", sourceProps.hasReplacementAction, {false})),
25
+ translateAnchorPointX(convertRawProp(context, rawProps, "translateAnchorPointX", sourceProps.translateAnchorPointX, {0.0})),
26
+ translateAnchorPointY(convertRawProp(context, rawProps, "translateAnchorPointY", sourceProps.translateAnchorPointY, {0.0})) {}
27
+
28
+ #ifdef RN_SERIALIZABLE_STATE
29
+ ComponentName IOSTranslateSheetViewProps::getDiffPropsImplementationTarget() const {
30
+ return "IOSTranslateSheetView";
31
+ }
32
+
33
+ folly::dynamic IOSTranslateSheetViewProps::getDiffProps(
34
+ const Props* prevProps) const {
35
+ static const auto defaultProps = IOSTranslateSheetViewProps();
36
+ const IOSTranslateSheetViewProps* oldProps = prevProps == nullptr
37
+ ? &defaultProps
38
+ : static_cast<const IOSTranslateSheetViewProps*>(prevProps);
39
+ if (this == oldProps) {
40
+ return folly::dynamic::object();
41
+ }
42
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
43
+
44
+ if (text != oldProps->text) {
45
+ result["text"] = text;
46
+ }
47
+
48
+ if (isPresented != oldProps->isPresented) {
49
+ result["isPresented"] = isPresented;
50
+ }
51
+
52
+ if (hasReplacementAction != oldProps->hasReplacementAction) {
53
+ result["hasReplacementAction"] = hasReplacementAction;
54
+ }
55
+
56
+ if ((translateAnchorPointX != oldProps->translateAnchorPointX) && !(std::isnan(translateAnchorPointX) && std::isnan(oldProps->translateAnchorPointX))) {
57
+ result["translateAnchorPointX"] = translateAnchorPointX;
58
+ }
59
+
60
+ if ((translateAnchorPointY != oldProps->translateAnchorPointY) && !(std::isnan(translateAnchorPointY) && std::isnan(oldProps->translateAnchorPointY))) {
61
+ result["translateAnchorPointY"] = translateAnchorPointY;
62
+ }
63
+ return result;
64
+ }
65
+ #endif
66
+
67
+ } // namespace facebook::react
@@ -0,0 +1,40 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GeneratePropsH.js
9
+ */
10
+ #pragma once
11
+
12
+ #include <react/renderer/components/view/ViewProps.h>
13
+ #include <react/renderer/core/PropsParserContext.h>
14
+ #include <react/renderer/debug/DebugStringConvertible.h>
15
+
16
+ namespace facebook::react {
17
+
18
+ class IOSTranslateSheetViewProps final : public ViewProps {
19
+ public:
20
+ IOSTranslateSheetViewProps() = default;
21
+ IOSTranslateSheetViewProps(const PropsParserContext& context, const IOSTranslateSheetViewProps &sourceProps, const RawProps &rawProps);
22
+
23
+ #pragma mark - Props
24
+
25
+ std::string text{};
26
+ bool isPresented{false};
27
+ bool hasReplacementAction{false};
28
+ double translateAnchorPointX{0.0};
29
+ double translateAnchorPointY{0.0};
30
+
31
+ #ifdef RN_SERIALIZABLE_STATE
32
+ ComponentName getDiffPropsImplementationTarget() const override;
33
+
34
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
35
+ #endif
36
+
37
+
38
+ };
39
+
40
+ } // namespace facebook::react
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateComponentHObjCpp.js
8
+ */
9
+
10
+ #import <Foundation/Foundation.h>
11
+ #import <React/RCTDefines.h>
12
+ #import <React/RCTLog.h>
13
+
14
+ NS_ASSUME_NONNULL_BEGIN
15
+
16
+ @protocol RCTIOSTranslateSheetViewViewProtocol <NSObject>
17
+
18
+ @end
19
+
20
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #import "RNIOSTranslateSheetViewSpec.h"
15
+
16
+
@@ -0,0 +1,38 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #ifndef __cplusplus
15
+ #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16
+ #endif
17
+
18
+ // Avoid multiple includes of RNIOSTranslateSheetViewSpec symbols
19
+ #ifndef RNIOSTranslateSheetViewSpec_H
20
+ #define RNIOSTranslateSheetViewSpec_H
21
+
22
+ #import <Foundation/Foundation.h>
23
+ #import <RCTRequired/RCTRequired.h>
24
+ #import <RCTTypeSafety/RCTConvertHelpers.h>
25
+ #import <RCTTypeSafety/RCTTypedModuleConstants.h>
26
+ #import <React/RCTBridgeModule.h>
27
+ #import <React/RCTCxxConvert.h>
28
+ #import <React/RCTManagedPointer.h>
29
+ #import <ReactCommon/RCTTurboModule.h>
30
+ #import <optional>
31
+ #import <vector>
32
+
33
+
34
+ NS_ASSUME_NONNULL_BEGIN
35
+
36
+
37
+ NS_ASSUME_NONNULL_END
38
+ #endif // RNIOSTranslateSheetViewSpec_H
@@ -0,0 +1,17 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateShadowNodeCpp.js
9
+ */
10
+
11
+ #include "ShadowNodes.h"
12
+
13
+ namespace facebook::react {
14
+
15
+ extern const char IOSTranslateSheetViewComponentName[] = "IOSTranslateSheetView";
16
+
17
+ } // namespace facebook::react
@@ -0,0 +1,32 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateShadowNodeH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include "EventEmitters.h"
14
+ #include "Props.h"
15
+ #include "States.h"
16
+ #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
+ #include <jsi/jsi.h>
18
+
19
+ namespace facebook::react {
20
+
21
+ JSI_EXPORT extern const char IOSTranslateSheetViewComponentName[];
22
+
23
+ /*
24
+ * `ShadowNode` for <IOSTranslateSheetView> component.
25
+ */
26
+ using IOSTranslateSheetViewShadowNode = ConcreteViewShadowNode<
27
+ IOSTranslateSheetViewComponentName,
28
+ IOSTranslateSheetViewProps,
29
+ IOSTranslateSheetViewEventEmitter,
30
+ IOSTranslateSheetViewState>;
31
+
32
+ } // namespace facebook::react
@@ -0,0 +1,16 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateStateCpp.js
9
+ */
10
+ #include "States.h"
11
+
12
+ namespace facebook::react {
13
+
14
+
15
+
16
+ } // namespace facebook::react
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateStateH.js
8
+ */
9
+ #pragma once
10
+
11
+ #include <react/renderer/core/StateData.h>
12
+ #ifdef RN_SERIALIZABLE_STATE
13
+ #include <folly/dynamic.h>
14
+ #endif
15
+
16
+ namespace facebook::react {
17
+
18
+ using IOSTranslateSheetViewState = StateData;
19
+
20
+ } // namespace facebook::react
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleH.js
8
+ */
9
+
10
+ #pragma once
11
+
12
+ #include <ReactCommon/TurboModule.h>
13
+ #include <react/bridging/Bridging.h>
14
+
15
+ namespace facebook::react {
16
+
17
+
18
+
19
+ } // namespace facebook::react
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ios-translate-sheet",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
4
4
  "description": "SwiftUI Translate Sheet on React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "lib/commonjs/index.js",
@@ -55,20 +55,20 @@
55
55
  "registry": "https://registry.npmjs.org/"
56
56
  },
57
57
  "devDependencies": {
58
- "@biomejs/biome": "2.4.4",
59
- "@commitlint/config-conventional": "20.4.2",
60
- "@react-native-community/cli": "15.1.3",
58
+ "@biomejs/biome": "2.4.5",
59
+ "@commitlint/config-conventional": "20.4.3",
60
+ "@react-native-community/cli": "20.1.2",
61
61
  "@semantic-release/changelog": "6.0.3",
62
62
  "@semantic-release/git": "10.0.1",
63
63
  "@types/react": "19.2.14",
64
- "commitlint": "20.4.2",
64
+ "commitlint": "20.4.3",
65
65
  "del-cli": "7.0.0",
66
66
  "husky": "9.1.7",
67
- "react": "19.1.0",
67
+ "react": "19.2.4",
68
68
  "react-native": "0.84.1",
69
69
  "react-native-builder-bob": "0.40.18",
70
70
  "semantic-release": "25.0.3",
71
- "turbo": "2.8.12",
71
+ "turbo": "2.8.13",
72
72
  "typescript": "5.9.3"
73
73
  },
74
74
  "resolutions": {
@@ -93,7 +93,8 @@
93
93
  "targets": [
94
94
  "commonjs",
95
95
  "module",
96
- "typescript"
96
+ "typescript",
97
+ "codegen"
97
98
  ]
98
99
  },
99
100
  "codegenConfig": {
@@ -117,6 +118,6 @@
117
118
  "create-react-native-library": {
118
119
  "languages": "kotlin-objc",
119
120
  "type": "fabric-view",
120
- "version": "0.48.3"
121
+ "version": "0.52.1"
121
122
  }
122
123
  }