-
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.
- Loading branch information
1 parent
2163c54
commit 76ffe96
Showing
5 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
import GetCardStyles from './types'; | ||
|
||
const getCardStyles: GetCardStyles = () => ({}); | ||
|
||
export default getCardStyles; |
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,12 @@ | ||
import GetCardStyles from './types'; | ||
|
||
/** | ||
* Get card style for cardStyleInterpolator | ||
*/ | ||
const getCardStyles: GetCardStyles = (screenWidth) => ({ | ||
position: 'fixed', | ||
width: screenWidth, | ||
height: '100%', | ||
}); | ||
|
||
export default getCardStyles; |
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,6 @@ | ||
import {CSSProperties} from 'react'; | ||
import {ViewStyle} from 'react-native'; | ||
|
||
type GetCardStyles = (screenWidth: number) => Partial<Pick<CSSProperties | ViewStyle, 'position' | 'width' | 'height'>>; | ||
|
||
export default GetCardStyles; |