@react-native-menu/menu 1.1.4 → 1.1.5

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.
@@ -152,9 +152,7 @@ class MenuViewManager: ReactClippingViewManager<MenuView>() {
152
152
 
153
153
  @ReactPropGroup(names = [ViewProps.BORDER_COLOR, ViewProps.BORDER_LEFT_COLOR, ViewProps.BORDER_RIGHT_COLOR, ViewProps.BORDER_TOP_COLOR, ViewProps.BORDER_BOTTOM_COLOR, ViewProps.BORDER_START_COLOR, ViewProps.BORDER_END_COLOR], customType = "Color")
154
154
  fun setBorderColor(view: ReactViewGroup, index: Int, color: Int?) {
155
- val rgbComponent = if (color == null) YogaConstants.UNDEFINED else (color and 0x00FFFFFF).toFloat()
156
- val alphaComponent = if (color == null) YogaConstants.UNDEFINED else (color ushr 24).toFloat()
157
- view.setBorderColor(SPACING_TYPES[index], rgbComponent, alphaComponent)
155
+ view.setBorderColor(index, color)
158
156
  }
159
157
 
160
158
  @ReactProp(name = ViewProps.OVERFLOW)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-menu/menu",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "UIMenu component for react-native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -49,7 +49,7 @@
49
49
  "@react-native/babel-preset": "^0.74.79",
50
50
  "@react-native/eslint-config": "^0.74.0",
51
51
  "@react-native/metro-config": "0.74.85",
52
- "@release-it/conventional-changelog": "^8.0.1",
52
+ "@release-it/conventional-changelog": "^9.0.1",
53
53
  "@rnx-kit/metro-config": "^2.0.0",
54
54
  "@types/jest": "^29.1.2",
55
55
  "@types/react": "^18.2.2",
@@ -66,7 +66,7 @@
66
66
  "react-native-builder-bob": "^0.30.2",
67
67
  "react-native-test-app": "^3.8.1",
68
68
  "release-it": "^17.2.0",
69
- "typescript": "5.6.2"
69
+ "typescript": "5.6.3"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "react": "*",