Skip to content

Commit

Permalink
Merge pull request #29760 from software-mansion-labs/ts-migration/Fix…
Browse files Browse the repository at this point in the history
…edFooter

[No QA] [TS migration] Migrate 'FixedFooter.js' component to TypeScript
  • Loading branch information
MonilBhavsar authored Oct 23, 2023
2 parents ad0bd83 + 2d08471 commit 844b3b9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/components/FixedFooter.js

This file was deleted.

19 changes: 19 additions & 0 deletions src/components/FixedFooter.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React, {ReactNode} from 'react';
import {StyleProp, View, ViewStyle} from 'react-native';
import styles from '../styles/styles';

type FixedFooterProps = {
/** Children to wrap in FixedFooter. */
children: ReactNode;

/** Styles to be assigned to Container */
style: Array<StyleProp<ViewStyle>>;
};

function FixedFooter({style = [], children}: FixedFooterProps) {
return <View style={[styles.ph5, styles.pb5, styles.flexShrink0, ...style]}>{children}</View>;
}

FixedFooter.displayName = 'FixedFooter';

export default FixedFooter;

0 comments on commit 844b3b9

Please sign in to comment.