Skip to content

Internal components - move display name to 'ignore' #3641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/colorPicker/ColorPickerDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const ColorPickerDialog = (props: ColorPickerDialogProps) => {
);
};

ColorPickerDialog.displayName = 'ColorPicker';
ColorPickerDialog.displayName = 'ColorPickerDialog';

export default asBaseComponent<ColorPickerDialogProps>(ColorPickerDialog);

Expand Down
2 changes: 1 addition & 1 deletion src/components/panningViews/panDismissibleView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ interface State {
* @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/PanDismissibleView/PanDismissibleView.gif?raw=true
*/
class PanDismissibleView extends PureComponent<Props, State> {
static displayName = 'PanDismissibleView';
static displayName = 'IGNORE';

static defaultProps: Partial<Props> = {
directions: DEFAULT_DIRECTIONS,
Expand Down
2 changes: 1 addition & 1 deletion src/components/panningViews/panGestureView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ interface State {
* @description: PanGestureView component for drag and swipe gestures (supports only vertical gestures at the moment)
*/
class PanGestureView extends Component<PanGestureViewProps, State> {
static displayName = 'PanGestureView';
static displayName = 'IGNORE';

static defaultProps: Partial<PanGestureViewProps> = {
direction: GestureDirections.DOWN
Expand Down
2 changes: 1 addition & 1 deletion src/components/panningViews/panListenerView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const DEFAULT_SWIPE_VELOCITY = 1.8;
* @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/PanListenerView/PanListenerView.gif?raw=true
*/
class PanListenerView extends PureComponent<Props> {
static displayName = 'PanListenerView';
static displayName = 'IGNORE';

public static defaultProps: Partial<Props> = {
directions: DEFAULT_DIRECTIONS,
Expand Down
2 changes: 1 addition & 1 deletion src/components/panningViews/panResponderView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ interface Props extends PanResponderViewProps {
* @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/PanResponderView/PanResponderView.gif?raw=true
*/
class PanResponderView extends PureComponent<Props> {
static displayName = 'PanResponderView';
static displayName = 'IGNORE';

static defaultProps = {
isAnimated: false
Expand Down
1 change: 1 addition & 0 deletions src/components/panningViews/panningContext.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

const PanningContext = React.createContext({});
PanningContext.displayName = 'IGNORE';
export default PanningContext;
3 changes: 2 additions & 1 deletion src/components/scrollBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const GRADIENT_WIDTH = 76;
*/

class ScrollBar extends Component<Props, State> {
static displayName = 'ScrollBar';
static displayName = 'IGNORE';

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

Item.displayName = 'IGNORE';
ScrollBar.Item = Item;

export default asBaseComponent<ScrollBarProps, ComponentStatics<typeof ScrollBar>>(forwardRef(gestureHandlerRootHOC(ScrollBar)));
2 changes: 2 additions & 0 deletions src/incubator/expandableOverlay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,6 @@ const ExpandableOverlay = (props: ExpandableOverlayProps, ref: any) => {
);
};

ExpandableOverlay.displayName = 'IGNORE';

export default forwardRef<ExpandableOverlayMethods, ExpandableOverlayProps>(ExpandableOverlay);
2 changes: 1 addition & 1 deletion src/incubator/panView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const PanView = (props: Props) => {
);
};

PanView.displayName = 'PanView';
PanView.displayName = 'IGNORE';
PanView.directions = PanViewDirectionsEnum;

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