@audira/carbon-react-native 1.0.0-beta.20 → 1.0.0-beta.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audira/carbon-react-native",
3
- "version": "1.0.0-beta.20",
3
+ "version": "1.0.0-beta.21",
4
4
  "license": "MIT",
5
5
  "homepage": "https://rakadoank.github.io/carbon-react-native",
6
6
  "repository": "https://github.com/RakaDoank/carbon-react-native",
@@ -120,7 +120,6 @@ export const Overlay = forwardRef<OverlayRef>(
120
120
  componentsConfig.current[index].width = target.children?.[0]?.clientWidth
121
121
  // @ts-expect-error Web DOM
122
122
  componentsConfig.current[index].height = target.children?.[0]?.clientHeight
123
-
124
123
  } else {
125
124
  componentsConfig.current[index].width = event.nativeEvent.layout.width
126
125
  componentsConfig.current[index].height = event.nativeEvent.layout.height
@@ -54,10 +54,10 @@ export const ComponentWrapper = forwardRef<ComponentWrapperRef, ComponentWrapper
54
54
  useRef(0),
55
55
 
56
56
  translateY =
57
- useRef(new Animated.Value(safeAreaInsets.top + Gap)),
57
+ useRef(new Animated.Value(safeAreaInsets.top)),
58
58
 
59
59
  translateYValueJS =
60
- useRef(0)
60
+ useRef(safeAreaInsets.top)
61
61
 
62
62
  useEffect(() => {
63
63
  const
@@ -159,13 +159,13 @@ const
159
159
  componentWrapper: {
160
160
  position: "absolute",
161
161
  left: "100%",
162
- width: "auto",
162
+ top: Gap,
163
163
  ...Platform.select({
164
164
  web: {
165
165
  flexDirection: "row",
166
166
  },
167
- android: {
168
- top: Gap, // iOS doesn't need this, Apple handles it internally
167
+ ios: {
168
+ top: 0,
169
169
  },
170
170
  }),
171
171
  },
File without changes