Skip to content

Ignore irrelevant components #1195

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 1 commit into from
Feb 23, 2021
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
4 changes: 4 additions & 0 deletions generatedTypes/components/fader/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export declare type FaderProps = Pick<ImageProps, 'supportRTL'> & {
*/
tintColor?: string;
};
/**
* @description: A gradient fading overlay to render on top of overflowing content (like scroll component)
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/FaderScreen.tsx
*/
declare function Fader(props: FaderProps): JSX.Element;
declare namespace Fader {
var displayName: string;
Expand Down
2 changes: 2 additions & 0 deletions lib/components/SafeArea/SafeAreaSpacerView.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const SafeAreaSpacerView = ({style}) => {
NativeSafeAreaSpacerView ? <NativeSafeAreaSpacerView style={style}/> : <View style={style}/>
);
};

SafeAreaSpacerView.displayName = 'IGNORE';
SafeAreaSpacerView.propTypes = {
style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),
};
Expand Down
1 change: 1 addition & 0 deletions src/components/dialog/DialogDismissibleView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ interface LocationProps {
const DEFAULT_DIRECTION = PanningProvider.Directions.DOWN;

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

public static defaultProps: Partial<Props> = {
direction: DEFAULT_DIRECTION,
Expand Down
4 changes: 4 additions & 0 deletions src/components/fader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export type FaderProps = Pick<ImageProps, 'supportRTL'> & {

const DEFAULT_FADE_SIZE = 50;

/**
* @description: A gradient fading overlay to render on top of overflowing content (like scroll component)
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/FaderScreen.tsx
*/
function Fader(props: FaderProps) {
const getFadeSize = useCallback(() => {
return props.size || DEFAULT_FADE_SIZE;
Expand Down
1 change: 1 addition & 0 deletions src/components/sharedTransition/SharedArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {Colors} from '../../style';
import ShareTransitionContext from './ShareTransitionContext';

class SharedArea extends Component {
displayName = 'IGNORE';
static propTypes = {
/**
* render details screen
Expand Down
1 change: 1 addition & 0 deletions src/components/sharedTransition/SourceElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import TouchableOpacity from '../touchableOpacity';
import ShareTransitionContext from './ShareTransitionContext';

class SourceElement extends Component {
displayName = 'IGNORE';
static propTypes = {
/**
* Data to share between shared element and placeholder
Expand Down
1 change: 1 addition & 0 deletions src/components/sharedTransition/TargetElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import TouchableOpacity from '../touchableOpacity';
import ShareTransitionContext from './ShareTransitionContext';

class TargetElement extends Component {
displayName = 'IGNORE';
state = {};

componentDidMount() {
Expand Down
1 change: 1 addition & 0 deletions src/components/tabController/FadedScrollView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ const FadedScrollView = (props: Props) => {
return null;
};

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