-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29760 from software-mansion-labs/ts-migration/Fix…
…edFooter [No QA] [TS migration] Migrate 'FixedFooter.js' component to TypeScript
- Loading branch information
Showing
2 changed files
with
19 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |