react-native-auto-positioned-popup 1.2.13 → 1.2.16

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,7 +1,8 @@
1
- import React from 'react';
1
+ import React, {RefObject} from 'react';
2
2
  import {StyleProp, TextInputProps, TextStyle, ViewStyle} from 'react-native';
3
3
  import {TextInputSubmitEditingEventData} from 'react-native/Libraries/Components/TextInput/TextInput';
4
4
  import {NativeSyntheticEvent} from 'react-native/Libraries/Types/CoreEventTypes';
5
+ import {KeyboardAwareScrollView} from 'react-native-keyboard-aware-scroll-view';
5
6
 
6
7
  export interface SelectedItem {
7
8
  id: string;
@@ -188,4 +189,25 @@ export interface AutoPositionedPopupProps {
188
189
  */
189
190
  onChangeText?: ((text: string) => void) | undefined;
190
191
  themeMode?: string | null | undefined;//light | dark
192
+ /**
193
+ * Reference to parent KeyboardAwareScrollView for auto-scrolling when keyboard appears.
194
+ * When provided, the component will scroll the parent to keep the trigger button visible
195
+ * above the keyboard.
196
+ *
197
+ * Example usage:
198
+ * const scrollViewRef = useRef<KeyboardAwareScrollView>(null);
199
+ * <KeyboardAwareScrollView ref={scrollViewRef}>
200
+ * <RNAutoPositionedPopup
201
+ * parentScrollViewRef={scrollViewRef}
202
+ * ...
203
+ * />
204
+ * </KeyboardAwareScrollView>
205
+ */
206
+ parentScrollViewRef?: RefObject<KeyboardAwareScrollView>;
207
+ /**
208
+ * Extra height to add when scrolling to make trigger visible.
209
+ * Useful for adding padding between the trigger and keyboard.
210
+ * Default: 100
211
+ */
212
+ scrollExtraHeight?: number;
191
213
  }