Skip to content

Commit a3ba8bf

Browse files
authored
Ignore irrelevant components (#1195)
1 parent b327cd8 commit a3ba8bf

File tree

8 files changed

+15
-0
lines changed

8 files changed

+15
-0
lines changed

generatedTypes/components/fader/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export declare type FaderProps = Pick<ImageProps, 'supportRTL'> & {
3232
*/
3333
tintColor?: string;
3434
};
35+
/**
36+
* @description: A gradient fading overlay to render on top of overflowing content (like scroll component)
37+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/FaderScreen.tsx
38+
*/
3539
declare function Fader(props: FaderProps): JSX.Element;
3640
declare namespace Fader {
3741
var displayName: string;

lib/components/SafeArea/SafeAreaSpacerView.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const SafeAreaSpacerView = ({style}) => {
99
NativeSafeAreaSpacerView ? <NativeSafeAreaSpacerView style={style}/> : <View style={style}/>
1010
);
1111
};
12+
13+
SafeAreaSpacerView.displayName = 'IGNORE';
1214
SafeAreaSpacerView.propTypes = {
1315
style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
1416
};

src/components/dialog/DialogDismissibleView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ interface LocationProps {
5656
const DEFAULT_DIRECTION = PanningProvider.Directions.DOWN;
5757

5858
class DialogDismissibleView extends PureComponent<Props, State> {
59+
static displayName = 'IGNORE';
5960

6061
public static defaultProps: Partial<Props> = {
6162
direction: DEFAULT_DIRECTION,

src/components/fader/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ export type FaderProps = Pick<ImageProps, 'supportRTL'> & {
4040

4141
const DEFAULT_FADE_SIZE = 50;
4242

43+
/**
44+
* @description: A gradient fading overlay to render on top of overflowing content (like scroll component)
45+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/FaderScreen.tsx
46+
*/
4347
function Fader(props: FaderProps) {
4448
const getFadeSize = useCallback(() => {
4549
return props.size || DEFAULT_FADE_SIZE;

src/components/sharedTransition/SharedArea.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {Colors} from '../../style';
88
import ShareTransitionContext from './ShareTransitionContext';
99

1010
class SharedArea extends Component {
11+
displayName = 'IGNORE';
1112
static propTypes = {
1213
/**
1314
* render details screen

src/components/sharedTransition/SourceElement.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import TouchableOpacity from '../touchableOpacity';
55
import ShareTransitionContext from './ShareTransitionContext';
66

77
class SourceElement extends Component {
8+
displayName = 'IGNORE';
89
static propTypes = {
910
/**
1011
* Data to share between shared element and placeholder

src/components/sharedTransition/TargetElement.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import TouchableOpacity from '../touchableOpacity';
44
import ShareTransitionContext from './ShareTransitionContext';
55

66
class TargetElement extends Component {
7+
displayName = 'IGNORE';
78
state = {};
89

910
componentDidMount() {

src/components/tabController/FadedScrollView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,5 @@ const FadedScrollView = (props: Props) => {
7373
return null;
7474
};
7575

76+
FadedScrollView.displayName = 'IGNORE';
7677
export default forwardRef<Props>(FadedScrollView);

0 commit comments

Comments
 (0)