react-native-ui-lib 7.44.0-snapshot.7212 → 7.44.0-snapshot.7227
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/babel.config.js +0 -12
- package/lib/components/HighlighterOverlayView/HighlighterViewNativeComponent.d.ts +61 -0
- package/lib/components/HighlighterOverlayView/HighlighterViewNativeComponent.js +2 -0
- package/lib/components/HighlighterOverlayView/index.js +1 -1
- package/lib/components/HighlighterOverlayView/index.web.d.ts +1 -1
- package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.js +1 -1
- package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingViewNativeComponent.d.ts +58 -0
- package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingViewNativeComponent.js +2 -0
- package/lib/package.json +1 -1
- package/package.json +2 -2
- package/src/components/KeyboardAwareScrollView/KeyboardAwareBase.js +1 -5
- package/src/components/featureHighlight/index.d.ts +1 -1
package/babel.config.js
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
presets: ['module:@react-native/babel-preset'],
|
|
3
|
-
env: {
|
|
4
|
-
test: {
|
|
5
|
-
presets: [
|
|
6
|
-
[
|
|
7
|
-
'module:@react-native/babel-preset',
|
|
8
|
-
{
|
|
9
|
-
disableStaticViewConfigsCodegen: true
|
|
10
|
-
}
|
|
11
|
-
]
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
3
|
plugins: [
|
|
16
4
|
'react-native-reanimated/plugin',
|
|
17
5
|
[
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/// <reference types="react-native/types/modules/codegen" />
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { Float, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
|
+
export interface HighlightFrame {
|
|
5
|
+
x: Float;
|
|
6
|
+
y: Float;
|
|
7
|
+
width: Float;
|
|
8
|
+
height: Float;
|
|
9
|
+
}
|
|
10
|
+
export interface MinimumRectSize {
|
|
11
|
+
width: Float;
|
|
12
|
+
height: Float;
|
|
13
|
+
}
|
|
14
|
+
export interface HighlightViewTagParams {
|
|
15
|
+
paddingLeft?: WithDefault<Float, 0>;
|
|
16
|
+
paddingTop?: WithDefault<Float, 0>;
|
|
17
|
+
paddingRight?: WithDefault<Float, 0>;
|
|
18
|
+
paddingBottom?: WithDefault<Float, 0>;
|
|
19
|
+
offsetX?: WithDefault<Float, 0>;
|
|
20
|
+
offsetY?: WithDefault<Float, 0>;
|
|
21
|
+
}
|
|
22
|
+
export interface NativeProps extends ViewProps {
|
|
23
|
+
/**
|
|
24
|
+
* The frame to highlight with x, y, width, height coordinates
|
|
25
|
+
*/
|
|
26
|
+
highlightFrame?: HighlightFrame;
|
|
27
|
+
/**
|
|
28
|
+
* The overlay color (processed color int for Android)
|
|
29
|
+
*/
|
|
30
|
+
overlayColor?: WithDefault<Int32, 0>;
|
|
31
|
+
/**
|
|
32
|
+
* The border radius for the highlighted area
|
|
33
|
+
*/
|
|
34
|
+
borderRadius?: WithDefault<Float, 0>;
|
|
35
|
+
/**
|
|
36
|
+
* The stroke color (processed color int for Android)
|
|
37
|
+
*/
|
|
38
|
+
strokeColor?: WithDefault<Int32, 0>;
|
|
39
|
+
/**
|
|
40
|
+
* The stroke width
|
|
41
|
+
*/
|
|
42
|
+
strokeWidth?: WithDefault<Float, 0>;
|
|
43
|
+
/**
|
|
44
|
+
* The React tag of the view to highlight
|
|
45
|
+
*/
|
|
46
|
+
highlightViewTag?: Int32;
|
|
47
|
+
/**
|
|
48
|
+
* Parameters for view-based highlighting including padding and offset
|
|
49
|
+
*/
|
|
50
|
+
highlightViewTagParams?: HighlightViewTagParams;
|
|
51
|
+
/**
|
|
52
|
+
* Minimum rectangle size for the highlight area
|
|
53
|
+
*/
|
|
54
|
+
minimumRectSize?: MinimumRectSize;
|
|
55
|
+
/**
|
|
56
|
+
* Inner padding for the highlight area
|
|
57
|
+
*/
|
|
58
|
+
innerPadding?: WithDefault<Float, 0>;
|
|
59
|
+
}
|
|
60
|
+
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
|
61
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { processColor, StyleSheet, Modal } from 'react-native';
|
|
3
3
|
// Import the Codegen specification for New Architecture
|
|
4
|
-
import HighlighterViewNativeComponent from "
|
|
4
|
+
import HighlighterViewNativeComponent from "./HighlighterViewNativeComponent";
|
|
5
5
|
const DefaultOverlayColor = 'rgba(0, 0, 0, 0.5)';
|
|
6
6
|
const HighlighterOverlayView = props => {
|
|
7
7
|
const {
|
|
@@ -19,7 +19,7 @@ export type HighlighterOverlayViewProps = {
|
|
|
19
19
|
onRequestClose?: () => void;
|
|
20
20
|
highlightFrame?: HighlightFrameType;
|
|
21
21
|
style?: ViewStyle;
|
|
22
|
-
highlightViewTag?: number;
|
|
22
|
+
highlightViewTag?: number | null;
|
|
23
23
|
children?: JSX.Element[] | JSX.Element;
|
|
24
24
|
highlightViewTagParams?: HighlightViewTagParams;
|
|
25
25
|
minimumRectSize?: Pick<HighlightFrameType, 'width' | 'height'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { PureComponent } from 'react';
|
|
2
2
|
import ReactNative, { NativeModules } from 'react-native';
|
|
3
3
|
// Import the Codegen specification for New Architecture
|
|
4
|
-
import KeyboardTrackingViewNativeComponent from "
|
|
4
|
+
import KeyboardTrackingViewNativeComponent from "./KeyboardTrackingViewNativeComponent";
|
|
5
5
|
const KeyboardTrackingViewTempManager = NativeModules.KeyboardTrackingViewTempManager;
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/// <reference types="react-native/types/modules/codegen" />
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
|
+
export interface NativeProps extends ViewProps {
|
|
5
|
+
/**
|
|
6
|
+
* Enables tracking of the keyboard when it's dismissed interactively (false by default).
|
|
7
|
+
*/
|
|
8
|
+
trackInteractive?: WithDefault<boolean, false>;
|
|
9
|
+
/**
|
|
10
|
+
* iOS only.
|
|
11
|
+
* Show the keyboard on a negative scroll
|
|
12
|
+
*/
|
|
13
|
+
revealKeyboardInteractive?: WithDefault<boolean, false>;
|
|
14
|
+
/**
|
|
15
|
+
* iOS only.
|
|
16
|
+
* Set to false to turn off inset management and manage it yourself
|
|
17
|
+
*/
|
|
18
|
+
manageScrollView?: WithDefault<boolean, true>;
|
|
19
|
+
/**
|
|
20
|
+
* iOS only.
|
|
21
|
+
* Set to true manageScrollView is set to true and still does not work
|
|
22
|
+
*/
|
|
23
|
+
requiresSameParentToManageScrollView?: WithDefault<boolean, false>;
|
|
24
|
+
/**
|
|
25
|
+
* iOS only.
|
|
26
|
+
* Allow hitting sub-views that are placed beyond the view bounds
|
|
27
|
+
*/
|
|
28
|
+
allowHitsOutsideBounds?: WithDefault<boolean, false>;
|
|
29
|
+
/**
|
|
30
|
+
* Should the scrollView scroll to the focused input
|
|
31
|
+
*/
|
|
32
|
+
scrollToFocusedInput?: WithDefault<boolean, false>;
|
|
33
|
+
/**
|
|
34
|
+
* iOS only.
|
|
35
|
+
* The scrolling behavior (NONE | SCROLL_TO_BOTTOM_INVERTED_ONLY | FIXED_OFFSET)
|
|
36
|
+
*/
|
|
37
|
+
scrollBehavior?: WithDefault<Int32, 0>;
|
|
38
|
+
/**
|
|
39
|
+
* iOS only.
|
|
40
|
+
* Add a SafeArea view beneath the KeyboardAccessoryView
|
|
41
|
+
*/
|
|
42
|
+
addBottomView?: WithDefault<boolean, false>;
|
|
43
|
+
/**
|
|
44
|
+
* iOS only.
|
|
45
|
+
* The bottom view's color
|
|
46
|
+
*/
|
|
47
|
+
bottomViewColor?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Allow control safe area
|
|
50
|
+
*/
|
|
51
|
+
useSafeArea?: WithDefault<boolean, false>;
|
|
52
|
+
/**
|
|
53
|
+
* Whether or not to include bottom tab bar inset
|
|
54
|
+
*/
|
|
55
|
+
usesBottomTabs?: WithDefault<boolean, false>;
|
|
56
|
+
}
|
|
57
|
+
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
|
58
|
+
export default _default;
|
package/lib/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ui-lib",
|
|
3
|
-
"version": "7.44.0-snapshot.
|
|
3
|
+
"version": "7.44.0-snapshot.7227",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"types": "src/index.d.ts",
|
|
6
6
|
"author": "Ethan Sharabi <ethan.shar@gmail.com>",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react-native-redash": "^12.0.3",
|
|
57
57
|
"semver": "^5.5.0",
|
|
58
58
|
"tinycolor2": "^1.4.2",
|
|
59
|
-
"uilib-native": "5.
|
|
59
|
+
"uilib-native": "4.5.1",
|
|
60
60
|
"url-parse": "^1.2.0",
|
|
61
61
|
"wix-react-native-text-size": "1.0.9"
|
|
62
62
|
},
|
|
@@ -107,7 +107,7 @@ export default class KeyboardAwareBase extends Component {
|
|
|
107
107
|
setTimeout(() => {
|
|
108
108
|
this._keyboardAwareView
|
|
109
109
|
.getScrollResponder()
|
|
110
|
-
.scrollResponderScrollNativeHandleToKeyboard(
|
|
110
|
+
.scrollResponderScrollNativeHandleToKeyboard(ReactNative.findNodeHandle(textInputRef),
|
|
111
111
|
this.props.scrollToInputAdditionalOffset,
|
|
112
112
|
true);
|
|
113
113
|
}, 0);
|
|
@@ -117,10 +117,6 @@ export default class KeyboardAwareBase extends Component {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
findNodeHandle(ref) {
|
|
121
|
-
return ref.current?.getNodeHandle?.() || ref?.getNodeHandle?.() || ReactNative.findNodeHandle(ref.current || ref);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
120
|
_onKeyboardWillShow(event) {
|
|
125
121
|
this._scrollToFocusedTextInput();
|
|
126
122
|
|