@react-native-menu/menu 1.0.0 → 1.0.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.
- package/ios/NewArch/MenuView.mm +0 -10
- package/package.json +20 -13
- package/react-native-menu.podspec +1 -1
package/ios/NewArch/MenuView.mm
CHANGED
|
@@ -54,7 +54,6 @@ using namespace facebook::react;
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
- (void)onPressAction:(NSString * _Nonnull)eventString {
|
|
57
|
-
#ifdef RN_FABRIC_ENABLED
|
|
58
57
|
// If screen is already unmounted then there will be no event emitter
|
|
59
58
|
const auto eventEmitter = [self getEventEmitter];
|
|
60
59
|
if (eventEmitter != nullptr) {
|
|
@@ -63,15 +62,6 @@ using namespace facebook::react;
|
|
|
63
62
|
.event = [eventString UTF8String]
|
|
64
63
|
});
|
|
65
64
|
}
|
|
66
|
-
#else
|
|
67
|
-
if (self.onPressAction) {
|
|
68
|
-
dispatch_async(dispatch_get_main_queue(), ^{
|
|
69
|
-
if (self.onPressAction) {
|
|
70
|
-
self.onPressAction(@{ @"event": eventString });
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
#endif
|
|
75
65
|
}
|
|
76
66
|
|
|
77
67
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-menu/menu",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "UIMenu component for react-native",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -20,15 +20,17 @@
|
|
|
20
20
|
"!**/__mocks__"
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
23
|
+
"android": "react-native run-android",
|
|
24
|
+
"bootstrap": "yarn && yarn pods",
|
|
26
25
|
"format": "prettier --write \"**/*.{js,ts,tsx}\"",
|
|
26
|
+
"ios": "react-native run-ios",
|
|
27
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
28
|
+
"pods": "cd example && pod-install --quiet",
|
|
27
29
|
"prepare": "bob build",
|
|
28
30
|
"release": "release-it",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
31
|
+
"start": "react-native start",
|
|
32
|
+
"test": "jest",
|
|
33
|
+
"typescript": "tsc --noEmit"
|
|
32
34
|
},
|
|
33
35
|
"keywords": [
|
|
34
36
|
"react-native",
|
|
@@ -43,22 +45,26 @@
|
|
|
43
45
|
},
|
|
44
46
|
"homepage": "https://github.com/react-native-menu/menu#readme",
|
|
45
47
|
"devDependencies": {
|
|
46
|
-
"@react-native
|
|
48
|
+
"@callstack/react-native-visionos": "^0.73.0",
|
|
49
|
+
"@react-native/babel-preset": "^0.74.79",
|
|
47
50
|
"@react-native/eslint-config": "^0.74.0",
|
|
48
|
-
"@
|
|
51
|
+
"@react-native/metro-config": "0.74.80",
|
|
52
|
+
"@release-it/conventional-changelog": "^8.0.1",
|
|
53
|
+
"@rnx-kit/metro-config": "^1.3.15",
|
|
49
54
|
"@types/jest": "^29.1.2",
|
|
50
55
|
"@types/react": "^18.2.2",
|
|
51
|
-
"@types/react-native": "0.
|
|
56
|
+
"@types/react-native": "0.73.0",
|
|
52
57
|
"eslint": "8.57.0",
|
|
53
58
|
"eslint-config-prettier": "^9.1.0",
|
|
54
59
|
"eslint-plugin-ft-flow": "^3.0.0",
|
|
55
60
|
"eslint-plugin-prettier": "^5.1.2",
|
|
56
|
-
"jest": "^29.1
|
|
61
|
+
"jest": "^29.2.1",
|
|
57
62
|
"pod-install": "^0.2.0",
|
|
58
63
|
"prettier": "^3.1.1",
|
|
59
64
|
"react": "18.2.0",
|
|
60
|
-
"react-native": "0.
|
|
65
|
+
"react-native": "^0.73.0",
|
|
61
66
|
"react-native-builder-bob": "^0.23.2",
|
|
67
|
+
"react-native-test-app": "^3.2.9",
|
|
62
68
|
"release-it": "^14.10.0",
|
|
63
69
|
"typescript": "4.8.4"
|
|
64
70
|
},
|
|
@@ -139,5 +145,6 @@
|
|
|
139
145
|
"name": "RNMenuViewSpec",
|
|
140
146
|
"type": "components",
|
|
141
147
|
"jsSrcsDir": "src"
|
|
142
|
-
}
|
|
148
|
+
},
|
|
149
|
+
"packageManager": "yarn@4.1.1"
|
|
143
150
|
}
|
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.license = package["license"]
|
|
12
12
|
s.authors = package["author"]
|
|
13
13
|
|
|
14
|
-
s.platforms = { :ios => "11.0" }
|
|
14
|
+
s.platforms = { :ios => "11.0", :visionos => "1.0"}
|
|
15
15
|
s.source = { :git => "https://github.com/react-native-menu/menu.git", :tag => "#{s.version}" }
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|