react-native-external-keyboard 0.8.2-rc → 0.8.2-rc1
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/lib/commonjs/components/RenderPropComponent/RenderPropComponent.js.map +1 -1
- package/lib/commonjs/utils/withKeyboardFocus.js.map +1 -1
- package/lib/module/components/RenderPropComponent/RenderPropComponent.js.map +1 -1
- package/lib/module/utils/withKeyboardFocus.js.map +1 -1
- package/lib/typescript/src/components/RenderPropComponent/RenderPropComponent.d.ts +1 -1
- package/lib/typescript/src/components/RenderPropComponent/RenderPropComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/Touchable/Pressable.d.ts +5 -1
- package/lib/typescript/src/components/Touchable/Pressable.d.ts.map +1 -1
- package/lib/typescript/src/utils/withKeyboardFocus.d.ts +2 -2
- package/lib/typescript/src/utils/withKeyboardFocus.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/RenderPropComponent/RenderPropComponent.tsx +1 -0
- package/src/utils/withKeyboardFocus.tsx +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_jsxRuntime","e","__esModule","default","RenderPropComponent","render","React","isValidElement","Component","jsx","exports"],"sourceRoot":"../../../../src","sources":["components/RenderPropComponent/RenderPropComponent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAyE,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_jsxRuntime","e","__esModule","default","RenderPropComponent","render","React","isValidElement","Component","jsx","exports"],"sourceRoot":"../../../../src","sources":["components/RenderPropComponent/RenderPropComponent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAyE,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQlE,MAAMG,mBAAmB,GAAGA,CAAC;EAAEC;AAA+B,CAAC,KAAK;EACzE,iBAAIC,cAAK,CAACC,cAAc,CAACF,MAAM,CAAC,EAAE;IAChC,OAAOA,MAAM;EACf,CAAC,MAAM,IAAI,OAAOA,MAAM,KAAK,UAAU,EAAE;IACvC,MAAMG,SAAS,GAAGH,MAAM;IACxB,oBAAO,IAAAL,WAAA,CAAAS,GAAA,EAACD,SAAS,IAAE,CAAC;EACtB,CAAC,MAAM;IACL,OAAO,IAAI;EACb;AACF,CAAC;AAACE,OAAA,CAAAN,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_components","_useFocusStyle","_RenderPropComponent","_useKeyboardPress","_IsViewFocusedContext","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","withKeyboardFocus","Component","WithKeyboardFocus","React","memo","forwardRef","allProps","ref","tintType","autoFocus","focusStyle","style","containerStyle","onFocusChange","onPress","onLongPress","onKeyUpPress","onKeyDownPress","onPressIn","onPressOut","group","haloEffect","canBeFocused","focusable","tintColor","onFocus","onBlur","containerFocusStyle","FocusHoverComponent","viewRef","componentRef","haloCornerRadius","haloExpendX","haloExpendY","groupIdentifier","withPressedStyle","triggerCodes","exposeMethods","enableA11yFocus","screenAutoA11yFocus","screenAutoA11yFocusDelay","orderIndex","orderGroup","orderId","orderLeft","orderRight","orderUp","orderDown","orderForward","orderBackward","orderFirst","orderLast","lockFocus","onComponentFocus","onComponentBlur","props","focused","containerFocusedStyle","componentStyleViewStyle","onFocusChangeHandler","hoverColor","useFocusStyle","withHaloEffect","onKeyUpPressHandler","onKeyDownPressHandler","onPressHandler","useKeyboardPress","HoverComponent","useMemo","jsx","View","styles","absolute","opacity","undefined","onContextMenuHandler","useCallback","IsViewFocusedContext","Provider","value","children","jsxs","BaseKeyboardView","onContextMenuPress","RenderPropComponent","render","wrappedComponentName","displayName","name","exports","StyleSheet","create","position","top","left","right","bottom"],"sourceRoot":"../../../src","sources":["utils/withKeyboardFocus.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAMA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AAAuE,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAGhE,MAAMkB,iBAAiB,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_components","_useFocusStyle","_RenderPropComponent","_useKeyboardPress","_IsViewFocusedContext","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","withKeyboardFocus","Component","WithKeyboardFocus","React","memo","forwardRef","allProps","ref","tintType","autoFocus","focusStyle","style","containerStyle","onFocusChange","onPress","onLongPress","onKeyUpPress","onKeyDownPress","onPressIn","onPressOut","group","haloEffect","canBeFocused","focusable","tintColor","onFocus","onBlur","containerFocusStyle","FocusHoverComponent","viewRef","componentRef","haloCornerRadius","haloExpendX","haloExpendY","groupIdentifier","withPressedStyle","triggerCodes","exposeMethods","enableA11yFocus","screenAutoA11yFocus","screenAutoA11yFocusDelay","orderIndex","orderGroup","orderId","orderLeft","orderRight","orderUp","orderDown","orderForward","orderBackward","orderFirst","orderLast","lockFocus","onComponentFocus","onComponentBlur","props","focused","containerFocusedStyle","componentStyleViewStyle","onFocusChangeHandler","hoverColor","useFocusStyle","withHaloEffect","onKeyUpPressHandler","onKeyDownPressHandler","onPressHandler","useKeyboardPress","HoverComponent","useMemo","jsx","View","styles","absolute","opacity","undefined","onContextMenuHandler","useCallback","IsViewFocusedContext","Provider","value","children","jsxs","BaseKeyboardView","onContextMenuPress","RenderPropComponent","render","wrappedComponentName","displayName","name","exports","StyleSheet","create","position","top","left","right","bottom"],"sourceRoot":"../../../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;EAEpC,CAAC,CACH,CAAC;EAED,MAAMmB,oBAAoB,GACvBrF,SAAS,EAAUsF,WAAW,IAAKtF,SAAS,CAASuF,IAAI,IAAI,WAAW;EAC3EtF,iBAAiB,CAACqF,WAAW,GAAG,qBAAqBD,oBAAoB,GAAG;EAE5E,OAAOpF,iBAAiB;AAC1B,CAAC;AAACuF,OAAA,CAAAzF,iBAAA,GAAAA,iBAAA;AAEF,MAAMuE,MAAM,GAAGmB,uBAAU,CAACC,MAAM,CAAC;EAC/BnB,QAAQ,EAAE;IACRoB,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACV,CAAC;EACDvB,OAAO,EAAE;IACPA,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","jsx","_jsx","RenderPropComponent","render","isValidElement","Component"],"sourceRoot":"../../../../src","sources":["components/RenderPropComponent/RenderPropComponent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAqD,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["React","jsx","_jsx","RenderPropComponent","render","isValidElement","Component"],"sourceRoot":"../../../../src","sources":["components/RenderPropComponent/RenderPropComponent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAqD,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQzE,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAAEC;AAA+B,CAAC,KAAK;EACzE,iBAAIJ,KAAK,CAACK,cAAc,CAACD,MAAM,CAAC,EAAE;IAChC,OAAOA,MAAM;EACf,CAAC,MAAM,IAAI,OAAOA,MAAM,KAAK,UAAU,EAAE;IACvC,MAAME,SAAS,GAAGF,MAAM;IACxB,oBAAOF,IAAA,CAACI,SAAS,IAAE,CAAC;EACtB,CAAC,MAAM;IACL,OAAO,IAAI;EACb;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","View","StyleSheet","BaseKeyboardView","useFocusStyle","RenderPropComponent","useKeyboardPress","IsViewFocusedContext","jsx","_jsx","jsxs","_jsxs","withKeyboardFocus","Component","WithKeyboardFocus","memo","forwardRef","allProps","ref","tintType","autoFocus","focusStyle","style","containerStyle","onFocusChange","onPress","onLongPress","onKeyUpPress","onKeyDownPress","onPressIn","onPressOut","group","haloEffect","canBeFocused","focusable","tintColor","onFocus","onBlur","containerFocusStyle","FocusHoverComponent","viewRef","componentRef","haloCornerRadius","haloExpendX","haloExpendY","groupIdentifier","withPressedStyle","triggerCodes","exposeMethods","enableA11yFocus","screenAutoA11yFocus","screenAutoA11yFocusDelay","orderIndex","orderGroup","orderId","orderLeft","orderRight","orderUp","orderDown","orderForward","orderBackward","orderFirst","orderLast","lockFocus","onComponentFocus","onComponentBlur","props","focused","containerFocusedStyle","componentStyleViewStyle","onFocusChangeHandler","hoverColor","withHaloEffect","onKeyUpPressHandler","onKeyDownPressHandler","onPressHandler","HoverComponent","styles","absolute","opacity","undefined","onContextMenuHandler","Provider","value","children","onContextMenuPress","render","wrappedComponentName","displayName","name","create","position","top","left","right","bottom"],"sourceRoot":"../../../src","sources":["utils/withKeyboardFocus.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAwB,OAAO;AACnE,SAASC,IAAI,EAAEC,UAAU,QAAwB,cAAc;AAC/D,SAASC,gBAAgB,QAAQ,eAAe;AAEhD,SAASC,aAAa,QAAQ,iBAAiB;AAM/C,SAASC,mBAAmB,QAAQ,uDAAuD;AAC3F,SAASC,gBAAgB,QAAQ,qCAAqC;AACtE,SAASC,oBAAoB,QAAQ,iCAAiC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGvE,OAAO,MAAMC,iBAAiB,
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","View","StyleSheet","BaseKeyboardView","useFocusStyle","RenderPropComponent","useKeyboardPress","IsViewFocusedContext","jsx","_jsx","jsxs","_jsxs","withKeyboardFocus","Component","WithKeyboardFocus","memo","forwardRef","allProps","ref","tintType","autoFocus","focusStyle","style","containerStyle","onFocusChange","onPress","onLongPress","onKeyUpPress","onKeyDownPress","onPressIn","onPressOut","group","haloEffect","canBeFocused","focusable","tintColor","onFocus","onBlur","containerFocusStyle","FocusHoverComponent","viewRef","componentRef","haloCornerRadius","haloExpendX","haloExpendY","groupIdentifier","withPressedStyle","triggerCodes","exposeMethods","enableA11yFocus","screenAutoA11yFocus","screenAutoA11yFocusDelay","orderIndex","orderGroup","orderId","orderLeft","orderRight","orderUp","orderDown","orderForward","orderBackward","orderFirst","orderLast","lockFocus","onComponentFocus","onComponentBlur","props","focused","containerFocusedStyle","componentStyleViewStyle","onFocusChangeHandler","hoverColor","withHaloEffect","onKeyUpPressHandler","onKeyDownPressHandler","onPressHandler","HoverComponent","styles","absolute","opacity","undefined","onContextMenuHandler","Provider","value","children","onContextMenuPress","render","wrappedComponentName","displayName","name","create","position","top","left","right","bottom"],"sourceRoot":"../../../src","sources":["utils/withKeyboardFocus.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAwB,OAAO;AACnE,SAASC,IAAI,EAAEC,UAAU,QAAwB,cAAc;AAC/D,SAASC,gBAAgB,QAAQ,eAAe;AAEhD,SAASC,aAAa,QAAQ,iBAAiB;AAM/C,SAASC,mBAAmB,QAAQ,uDAAuD;AAC3F,SAASC,gBAAgB,QAAQ,qCAAqC;AACtE,SAASC,oBAAoB,QAAQ,iCAAiC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGvE,OAAO,MAAMC,iBAAiB,GAK5BC,SAAqD,IAClD;EACH,MAAMC,iBAAiB,gBAAGhB,KAAK,CAACiB,IAAI,cA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ACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACV,CAAC;EACDhB,OAAO,EAAE;IACPA,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FunctionComponent, type ReactElement } from 'react';
|
|
2
|
-
export type RenderProp = ReactElement | FunctionComponent | (() => ReactElement);
|
|
2
|
+
export type RenderProp = ReactElement | FunctionComponent | FunctionComponent<{}> | (() => ReactElement);
|
|
3
3
|
export declare const RenderPropComponent: ({ render }: {
|
|
4
4
|
render: RenderProp;
|
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderPropComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/RenderPropComponent/RenderPropComponent.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAEzE,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ,iBAAiB,GACjB,CAAC,MAAM,YAAY,CAAC,CAAC;AAEzB,eAAO,MAAM,mBAAmB,GAAI,YAAY;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,mDASrE,CAAC"}
|
|
1
|
+
{"version":3,"file":"RenderPropComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/RenderPropComponent/RenderPropComponent.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAEzE,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ,iBAAiB,GACjB,iBAAiB,CAAC,EAAE,CAAC,GACrB,CAAC,MAAM,YAAY,CAAC,CAAC;AAEzB,eAAO,MAAM,mBAAmB,GAAI,YAAY;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,mDASrE,CAAC"}
|
|
@@ -149,7 +149,11 @@ export declare const Pressable: import("react").NamedExoticComponent<Omit<import
|
|
|
149
149
|
unstable_pressDelay?: number | undefined;
|
|
150
150
|
}>, never>>, "ref"> & {
|
|
151
151
|
ref?: React.Ref<React.ComponentRef<typeof View>>;
|
|
152
|
-
}, unknown
|
|
152
|
+
}, unknown, (props: Omit<ViewProps, keyof {
|
|
153
|
+
ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
|
|
154
|
+
}> & {
|
|
155
|
+
ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
|
|
156
|
+
}) => React.ReactNode>, "ref"> & import("react").RefAttributes<((props: Omit<ViewProps, keyof {
|
|
153
157
|
ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
|
|
154
158
|
}> & {
|
|
155
159
|
ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../../src/components/Touchable/Pressable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,IAAI,EACV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAEtF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAO0W,CAAC;;OAAyE,CAAC;wDAPpZ,CAAC;AAExD,MAAM,MAAM,sBAAsB,GAAG,gCAAgC,CACnE,cAAc,EACd,SAAS,CAAC,OAAO,CAAC,EAClB,IAAI,CACL,CAAC"}
|
|
1
|
+
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../../src/components/Touchable/Pressable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,IAAI,EACV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAEtF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAO0W,CAAC;;OAAyE,CAAC;;OAA3E,CAAC;;OAAyE,CAAC;wDAPpZ,CAAC;AAExD,MAAM,MAAM,sBAAsB,GAAG,gCAAgC,CACnE,cAAc,EACd,SAAS,CAAC,OAAO,CAAC,EAClB,IAAI,CACL,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ViewProps } from 'react-native';
|
|
2
|
+
import { View, type ViewProps } from 'react-native';
|
|
3
3
|
import type { KeyboardFocus } from '../types/BaseKeyboardView';
|
|
4
4
|
import type { WithKeyboardFocus, WithKeyboardFocusComponent } from '../types/WithKeyboardFocus';
|
|
5
|
-
export declare const withKeyboardFocus: <ComponentProps extends object, ViewStyleType>(Component: WithKeyboardFocusComponent<ComponentProps>) => React.NamedExoticComponent<React.PropsWithoutRef<WithKeyboardFocus<ComponentProps, ViewStyleType>> & React.RefAttributes<((props: Omit<ViewProps, keyof {
|
|
5
|
+
export declare const withKeyboardFocus: <ComponentProps extends object, ViewStyleType, ViewType = View>(Component: WithKeyboardFocusComponent<ComponentProps>) => React.NamedExoticComponent<React.PropsWithoutRef<WithKeyboardFocus<ComponentProps, ViewStyleType, ViewType>> & React.RefAttributes<((props: Omit<ViewProps, keyof {
|
|
6
6
|
ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
|
|
7
7
|
}> & {
|
|
8
8
|
ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withKeyboardFocus.d.ts","sourceRoot":"","sources":["../../../../src/utils/withKeyboardFocus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AACpE,OAAO,
|
|
1
|
+
{"version":3,"file":"withKeyboardFocus.d.ts","sourceRoot":"","sources":["../../../../src/utils/withKeyboardFocus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,IAAI,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,2BAA2B,CAAC;AAE3E,OAAO,KAAK,EAEV,iBAAiB,EACjB,0BAA0B,EAC3B,MAAM,4BAA4B,CAAC;AAMpC,eAAO,MAAM,iBAAiB,GAC5B,cAAc,SAAS,MAAM,EAC7B,aAAa,EACb,QAAQ,GAAG,IAAI,EAEf,WAAW,0BAA0B,CAAC,cAAc,CAAC;OAFjD,CAAC;;OAGJ,CAAC;wCA+KH,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import React, { type FunctionComponent, type ReactElement } from 'react';
|
|
|
3
3
|
export type RenderProp =
|
|
4
4
|
| ReactElement
|
|
5
5
|
| FunctionComponent
|
|
6
|
+
| FunctionComponent<{}>
|
|
6
7
|
| (() => ReactElement);
|
|
7
8
|
|
|
8
9
|
export const RenderPropComponent = ({ render }: { render: RenderProp }) => {
|
|
@@ -13,13 +13,17 @@ import { useKeyboardPress } from './useKeyboardPress/useKeyboardPress';
|
|
|
13
13
|
import { IsViewFocusedContext } from '../context/IsViewFocusedContext';
|
|
14
14
|
import type { FocusViewProps } from '../types/KeyboardFocusView.types';
|
|
15
15
|
|
|
16
|
-
export const withKeyboardFocus = <
|
|
16
|
+
export const withKeyboardFocus = <
|
|
17
|
+
ComponentProps extends object,
|
|
18
|
+
ViewStyleType,
|
|
19
|
+
ViewType = View
|
|
20
|
+
>(
|
|
17
21
|
Component: WithKeyboardFocusComponent<ComponentProps>
|
|
18
22
|
) => {
|
|
19
23
|
const WithKeyboardFocus = React.memo(
|
|
20
24
|
React.forwardRef<
|
|
21
25
|
View | KeyboardFocus,
|
|
22
|
-
WithKeyboardFocus<ComponentProps, ViewStyleType>
|
|
26
|
+
WithKeyboardFocus<ComponentProps, ViewStyleType, ViewType>
|
|
23
27
|
>((allProps, ref) => {
|
|
24
28
|
const {
|
|
25
29
|
tintType = 'default',
|