react-native-auto-positioned-popup 1.2.19 → 1.2.20

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,4 +1,3 @@
1
- import { debugLog } from './constants';
2
1
  // Module load marker - unique ID for tracking code version
3
2
  // V19f (2025-01-04): CORRECT direction for coordinate adjustment - ADD statusBarHeight to move popup DOWN
4
3
  // Wait 1 second for KeyboardAwareScrollView to stabilize, then use measureInWindow to get trigger's FINAL position
@@ -8,13 +7,13 @@ const POPUP_DEBUG = false; // DISABLED: Too many logs cause app freeze
8
7
  const POPUP_POSITION_DEBUG = true; // Only log positioning calculations
9
8
  const debugLog = (...args) => {
10
9
  if (POPUP_DEBUG) {
11
- debugLog(...args);
10
+ console.log(...args);
12
11
  }
13
12
  };
14
13
  // Separate logging function for position-related logs only
15
14
  const positionDebugLog = (...args) => {
16
15
  if (POPUP_POSITION_DEBUG) {
17
- debugLog(...args);
16
+ console.log(...args);
18
17
  }
19
18
  };
20
19
  // Only log module load in debug mode
@@ -1,11 +1,10 @@
1
- import { debugLog } from './constants';
2
1
  import { useEffect, useState, useRef } from 'react';
3
2
  import { Keyboard } from 'react-native';
4
3
  // DEBUG FLAG: Set to false to disable all console logs for better performance
5
4
  const KEYBOARD_DEBUG = false;
6
5
  const debugLog = (...args) => {
7
6
  if (KEYBOARD_DEBUG) {
8
- debugLog(...args);
7
+ console.log(...args);
9
8
  }
10
9
  };
11
10
  // Debounce function
@@ -1,11 +1,10 @@
1
- import { debugLog } from './constants';
2
1
  import React, { createContext, useContext, useEffect, useMemo, useRef, useState } from 'react';
3
2
  import { Pressable, View, Keyboard, StyleSheet } from 'react-native';
4
3
  // DEBUG FLAG: Set to false to disable all console logs for better performance
5
4
  const ROOTVIEW_DEBUG = false;
6
5
  const debugLog = (...args) => {
7
6
  if (ROOTVIEW_DEBUG) {
8
- debugLog(...args);
7
+ console.log(...args);
9
8
  }
10
9
  };
11
10
  const RootViewContext = createContext(undefined);
@@ -97,7 +96,7 @@ export const RootViewProvider = ({ children }) => {
97
96
  {rootViews.length > 0 && (<View pointerEvents="box-none" style={rootViewStyles.popupContainer}>
98
97
  {rootViews.map(({ id, style, component, useModal, onModalClose, centerDisplay }) => {
99
98
  // POSITION DEBUG: Log the actual top value being applied (simple format for cleaner logs)
100
- debugLog(`📍 RENDER_STYLE id=${id} top=${style === null || style === void 0 ? void 0 : style.top} left=${style === null || style === void 0 ? void 0 : style.left} w=${style === null || style === void 0 ? void 0 : style.width} h=${style === null || style === void 0 ? void 0 : style.height} op=${style === null || style === void 0 ? void 0 : style.opacity}`);
99
+ console.log(`📍 RENDER_STYLE id=${id} top=${style === null || style === void 0 ? void 0 : style.top} left=${style === null || style === void 0 ? void 0 : style.left} w=${style === null || style === void 0 ? void 0 : style.width} h=${style === null || style === void 0 ? void 0 : style.height} op=${style === null || style === void 0 ? void 0 : style.opacity}`);
101
100
  return !useModal ? (<View key={id} ref={(r) => {
102
101
  if (r)
103
102
  viewRefs.current[id] = r;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-auto-positioned-popup",
3
- "version": "1.2.19",
3
+ "version": "1.2.20",
4
4
  "description": "A highly customizable React Native auto-positioned popup component with search functionality and flexible styling options",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",