@mrmeg/expo-ui 0.24.0 → 0.25.0

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.
@@ -19,7 +19,6 @@
19
19
  * function that has no hook calls of its own).
20
20
  */
21
21
  import React from "react";
22
- import { View } from "react-native";
23
22
  import type { IKeyboardState, KeyboardAnimationContext, KeyboardAvoidingViewProps, KeyboardControllerModule } from "react-native-keyboard-controller";
24
23
  /** No-op imperative module: there is no IME to dismiss or preload on web. */
25
24
  export declare const KeyboardController: KeyboardControllerModule;
@@ -41,6 +40,9 @@ type NativeKeyboardAvoidingViewProps = KeyboardAvoidingViewProps & {
41
40
  * Plain `View` passthrough. Keyboard-avoidance props are accepted (so callers
42
41
  * stay identical across platforms) and dropped, since the browser handles
43
42
  * viewport resizing itself.
43
+ *
44
+ * The explicit return type keeps declaration emit from inlining `View`'s ref
45
+ * type (RN 0.88's `ViewInstance`), which older RN typings do not export.
44
46
  */
45
- export declare function NativeKeyboardAvoidingView({ behavior, contentContainerStyle, keyboardVerticalOffset, automaticOffset, enabled, children, ...viewProps }: NativeKeyboardAvoidingViewProps): React.CElement<import("react-native").ViewProps, View>;
47
+ export declare function NativeKeyboardAvoidingView({ behavior, contentContainerStyle, keyboardVerticalOffset, automaticOffset, enabled, children, ...viewProps }: NativeKeyboardAvoidingViewProps): React.ReactElement;
46
48
  export {};
@@ -53,6 +53,7 @@ export const KeyboardController = {
53
53
  setDefaultMode: () => undefined,
54
54
  setInputMode: () => undefined,
55
55
  preload: () => undefined,
56
+ setTranslucent: () => undefined,
56
57
  dismiss: () => Promise.resolve(),
57
58
  setFocusTo: () => undefined,
58
59
  isVisible: () => false,
@@ -77,6 +78,9 @@ export function useKeyboardContext() {
77
78
  * Plain `View` passthrough. Keyboard-avoidance props are accepted (so callers
78
79
  * stay identical across platforms) and dropped, since the browser handles
79
80
  * viewport resizing itself.
81
+ *
82
+ * The explicit return type keeps declaration emit from inlining `View`'s ref
83
+ * type (RN 0.88's `ViewInstance`), which older RN typings do not export.
80
84
  */
81
85
  export function NativeKeyboardAvoidingView({ behavior, contentContainerStyle, keyboardVerticalOffset, automaticOffset, enabled, children, ...viewProps }) {
82
86
  // Dropped rather than forwarded so they never reach the DOM node.