@react-native-menu/menu 1.2.0 → 1.2.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.
@@ -203,7 +203,7 @@ class MenuView(private val mContext: ReactContext) : ReactViewGroup(mContext) {
203
203
  UIManagerHelper.getEventDispatcherForReactTag(mContext, id)
204
204
  val surfaceId: Int = UIManagerHelper.getSurfaceId(this)
205
205
  dispatcher?.dispatchEvent(
206
- MenuOnPressActionEvent(surfaceId, id, selectedItem.getString("id"), id)
206
+ MenuOnPressActionEvent(surfaceId, id, selectedItem?.getString("id"), id)
207
207
  )
208
208
  }
209
209
  true
@@ -248,7 +248,7 @@ class MenuView(private val mContext: ReactContext) : ReactViewGroup(mContext) {
248
248
  UIManagerHelper.getEventDispatcherForReactTag(mContext, id)
249
249
  val surfaceId: Int = UIManagerHelper.getSurfaceId(this)
250
250
  dispatcher?.dispatchEvent(
251
- MenuOnPressActionEvent(surfaceId, id, selectedItem.getString("id"), id)
251
+ MenuOnPressActionEvent(surfaceId, id, selectedItem?.getString("id"), id)
252
252
  )
253
253
  }
254
254
  true
@@ -210,7 +210,7 @@ abstract class MenuViewManagerBase : ReactClippingViewManager<MenuView>() {
210
210
  }
211
211
 
212
212
  @ReactProp(name = "backfaceVisibility")
213
- fun setBackfaceVisibility(view: ReactViewGroup, backfaceVisibility: String?) {
213
+ fun setBackfaceVisibility(view: ReactViewGroup, backfaceVisibility: String) {
214
214
  view.setBackfaceVisibility(backfaceVisibility)
215
215
  }
216
216
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-menu/menu",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "UIMenu component for react-native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -48,8 +48,8 @@
48
48
  "@biomejs/biome": "1.9.4",
49
49
  "@callstack/react-native-visionos": "^0.73.0",
50
50
  "@react-native/babel-preset": "^0.76.1",
51
- "@react-native/metro-config": "0.76.3",
52
- "@release-it/conventional-changelog": "^9.0.1",
51
+ "@react-native/metro-config": "0.76.6",
52
+ "@release-it/conventional-changelog": "^10.0.0",
53
53
  "@rnx-kit/metro-config": "^2.0.0",
54
54
  "@types/jest": "^29.1.2",
55
55
  "@types/react": "^18.2.2",
@@ -61,7 +61,7 @@
61
61
  "react-native-builder-bob": "^0.35.2",
62
62
  "react-native-test-app": "^4.0.4",
63
63
  "release-it": "^17.2.0",
64
- "typescript": "5.7.2"
64
+ "typescript": "5.7.3"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "react": "*",