bootstrap-rn 0.4.1 → 0.4.3

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.
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useMemo, RefObject } from 'react';
2
- import { Platform, findNodeHandle } from 'react-native';
2
+ import { Platform } from 'react-native';
3
3
  import StyleSheet from '../../style/StyleSheet';
4
4
  import css from '../../style/css';
5
5
  import Pressable from '../Pressable';
@@ -47,10 +47,10 @@ function BackdropHandler(props: BackdropHandlerProps) {
47
47
  useEffect(() => {
48
48
  const toggle = toggleRef
49
49
  ? // @ts-expect-error web only method for converting to HTMLElement
50
- (findNodeHandle(toggleRef.current) as HTMLElement)
50
+ (toggleRef.current as HTMLElement)
51
51
  : undefined;
52
52
  // @ts-expect-error web only method for converting to HTMLElement
53
- const dialog = findNodeHandle(dialogRef.current) as HTMLElement;
53
+ const dialog = dialogRef.current as HTMLElement;
54
54
 
55
55
  const handleDialogMouseDown = () => {
56
56
  state.waitingForMouseUp = true;
@@ -1,5 +1,5 @@
1
1
  import { useRef, useMemo, RefObject } from 'react';
2
- import { Platform, findNodeHandle } from 'react-native';
2
+ import { Platform } from 'react-native';
3
3
  import type { ViewRef } from '../components/View';
4
4
 
5
5
  type ScrollbarEffectsState = {
@@ -49,7 +49,7 @@ export default function useScrollbarEffects(
49
49
  // Set body and fixed elements padding adjustments.
50
50
  const fixedElements = elements
51
51
  .filter((ref) => ref.current)
52
- .map((ref) => findNodeHandle(ref.current));
52
+ .map((ref) => ref.current);
53
53
 
54
54
  // @ts-expect-error fixedElements should be of type HTMLElement[]
55
55
  state.current.elements = [document.body, ...fixedElements];
@@ -97,7 +97,7 @@ const StyleSheet = {
97
97
  // If initialized, set active sheet based by active theme.
98
98
  if (activeKey !== null) {
99
99
  sheet.cache[activeKey] = createSheet(sheet);
100
- sheet.active = sheet.cache[activeKey];
100
+ Object.assign(sheet.active, sheet.cache[activeKey]);
101
101
  }
102
102
 
103
103
  sheets.push(sheet);