Skip to content

Commit d1fce6e

Browse files
authored
Internal components - move display name to 'ignore' (#3641)
* Components - display name ignore for internal components * fix displayname * ignore panningView components
1 parent 56ffdcf commit d1fce6e

File tree

9 files changed

+11
-7
lines changed

9 files changed

+11
-7
lines changed

src/components/colorPicker/ColorPickerDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const ColorPickerDialog = (props: ColorPickerDialogProps) => {
193193
);
194194
};
195195

196-
ColorPickerDialog.displayName = 'ColorPicker';
196+
ColorPickerDialog.displayName = 'ColorPickerDialog';
197197

198198
export default asBaseComponent<ColorPickerDialogProps>(ColorPickerDialog);
199199

src/components/panningViews/panDismissibleView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ interface State {
9696
* @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/PanDismissibleView/PanDismissibleView.gif?raw=true
9797
*/
9898
class PanDismissibleView extends PureComponent<Props, State> {
99-
static displayName = 'PanDismissibleView';
99+
static displayName = 'IGNORE';
100100

101101
static defaultProps: Partial<Props> = {
102102
directions: DEFAULT_DIRECTIONS,

src/components/panningViews/panGestureView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ interface State {
4646
* @description: PanGestureView component for drag and swipe gestures (supports only vertical gestures at the moment)
4747
*/
4848
class PanGestureView extends Component<PanGestureViewProps, State> {
49-
static displayName = 'PanGestureView';
49+
static displayName = 'IGNORE';
5050

5151
static defaultProps: Partial<PanGestureViewProps> = {
5252
direction: GestureDirections.DOWN

src/components/panningViews/panListenerView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const DEFAULT_SWIPE_VELOCITY = 1.8;
9595
* @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/PanListenerView/PanListenerView.gif?raw=true
9696
*/
9797
class PanListenerView extends PureComponent<Props> {
98-
static displayName = 'PanListenerView';
98+
static displayName = 'IGNORE';
9999

100100
public static defaultProps: Partial<Props> = {
101101
directions: DEFAULT_DIRECTIONS,

src/components/panningViews/panResponderView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interface Props extends PanResponderViewProps {
3535
* @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/PanResponderView/PanResponderView.gif?raw=true
3636
*/
3737
class PanResponderView extends PureComponent<Props> {
38-
static displayName = 'PanResponderView';
38+
static displayName = 'IGNORE';
3939

4040
static defaultProps = {
4141
isAnimated: false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
22

33
const PanningContext = React.createContext({});
4+
PanningContext.displayName = 'IGNORE';
45
export default PanningContext;

src/components/scrollBar/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const GRADIENT_WIDTH = 76;
7575
*/
7676

7777
class ScrollBar extends Component<Props, State> {
78-
static displayName = 'ScrollBar';
78+
static displayName = 'IGNORE';
7979

8080
static defaultProps = {
8181
gradientWidth: GRADIENT_WIDTH,
@@ -277,4 +277,5 @@ const Item = ({children, index, onLayout}: any) => {
277277

278278
Item.displayName = 'IGNORE';
279279
ScrollBar.Item = Item;
280+
280281
export default asBaseComponent<ScrollBarProps, ComponentStatics<typeof ScrollBar>>(forwardRef(gestureHandlerRootHOC(ScrollBar)));

src/incubator/expandableOverlay/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,6 @@ const ExpandableOverlay = (props: ExpandableOverlayProps, ref: any) => {
144144
);
145145
};
146146

147+
ExpandableOverlay.displayName = 'IGNORE';
148+
147149
export default forwardRef<ExpandableOverlayMethods, ExpandableOverlayProps>(ExpandableOverlay);

src/incubator/panView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const PanView = (props: Props) => {
7777
);
7878
};
7979

80-
PanView.displayName = 'PanView';
80+
PanView.displayName = 'IGNORE';
8181
PanView.directions = PanViewDirectionsEnum;
8282

8383
export default asBaseComponent<PanViewProps, typeof PanView>(gestureHandlerRootHOC(PanView));

0 commit comments

Comments
 (0)