react-native-ios-translate-sheet 1.4.2 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
|
|
14
14
|
namespace facebook::react {
|
|
15
15
|
|
|
16
|
-
void IOSTranslateSheetViewEventEmitter::onHide(OnHide
|
|
16
|
+
void IOSTranslateSheetViewEventEmitter::onHide(OnHide event) const {
|
|
17
17
|
dispatchEvent("hide", [](jsi::Runtime &runtime) {
|
|
18
|
-
auto
|
|
18
|
+
auto payload = jsi::Object(runtime);
|
|
19
19
|
|
|
20
|
-
return
|
|
20
|
+
return payload;
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
void IOSTranslateSheetViewEventEmitter::onReplacementAction(OnReplacementAction
|
|
26
|
-
dispatchEvent("replacementAction", [
|
|
27
|
-
auto
|
|
28
|
-
|
|
29
|
-
return
|
|
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
30
|
});
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
|
|
14
14
|
namespace facebook::react {
|
|
15
15
|
|
|
16
|
-
void IOSTranslateSheetViewEventEmitter::onHide(OnHide
|
|
16
|
+
void IOSTranslateSheetViewEventEmitter::onHide(OnHide event) const {
|
|
17
17
|
dispatchEvent("hide", [](jsi::Runtime &runtime) {
|
|
18
|
-
auto
|
|
18
|
+
auto payload = jsi::Object(runtime);
|
|
19
19
|
|
|
20
|
-
return
|
|
20
|
+
return payload;
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
void IOSTranslateSheetViewEventEmitter::onReplacementAction(OnReplacementAction
|
|
26
|
-
dispatchEvent("replacementAction", [
|
|
27
|
-
auto
|
|
28
|
-
|
|
29
|
-
return
|
|
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
30
|
});
|
|
31
31
|
}
|
|
32
32
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ios-translate-sheet",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"description": "SwiftUI Translate Sheet on React Native",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
|
@@ -59,25 +59,25 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@biomejs/biome": "1.9.4",
|
|
62
|
-
"@commitlint/config-conventional": "19.8.
|
|
62
|
+
"@commitlint/config-conventional": "19.8.1",
|
|
63
63
|
"@react-native-community/cli": "15.1.3",
|
|
64
64
|
"@semantic-release/changelog": "6.0.3",
|
|
65
65
|
"@semantic-release/git": "10.0.1",
|
|
66
66
|
"@types/jest": "29.5.14",
|
|
67
|
-
"@types/react": "19.1.
|
|
68
|
-
"commitlint": "19.8.
|
|
67
|
+
"@types/react": "19.1.8",
|
|
68
|
+
"commitlint": "19.8.1",
|
|
69
69
|
"del-cli": "6.0.0",
|
|
70
70
|
"husky": "9.1.7",
|
|
71
71
|
"jest": "29.7.0",
|
|
72
72
|
"react": "19.1.0",
|
|
73
|
-
"react-native": "0.
|
|
74
|
-
"react-native-builder-bob": "0.40.
|
|
75
|
-
"semantic-release": "24.2.
|
|
76
|
-
"turbo": "2.5.
|
|
73
|
+
"react-native": "0.80.0",
|
|
74
|
+
"react-native-builder-bob": "0.40.11",
|
|
75
|
+
"semantic-release": "24.2.5",
|
|
76
|
+
"turbo": "2.5.4",
|
|
77
77
|
"typescript": "5.8.3"
|
|
78
78
|
},
|
|
79
79
|
"resolutions": {
|
|
80
|
-
"@types/react": "19.1.
|
|
80
|
+
"@types/react": "19.1.8"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"react": "*",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"workspaces": [
|
|
87
87
|
"example"
|
|
88
88
|
],
|
|
89
|
-
"packageManager": "yarn@4.9.
|
|
89
|
+
"packageManager": "yarn@4.9.2",
|
|
90
90
|
"jest": {
|
|
91
91
|
"preset": "react-native",
|
|
92
92
|
"modulePathIgnorePatterns": [
|