forked from sap-labs-france/ev-mobile
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
17 changed files
with
104 additions
and
84 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,44 @@ | ||
import deepmerge from 'deepmerge'; | ||
import { StyleSheet } from 'react-native'; | ||
import ResponsiveStylesSheet from 'react-native-responsive-stylesheet'; | ||
import { ScaledSheet } from 'react-native-size-matters'; | ||
|
||
import Utils from '../../utils/Utils'; | ||
|
||
export default function computeStyleSheet(): StyleSheet.NamedStyles<any> { | ||
const commonColor = Utils.getCurrentCommonColor(); | ||
const commonStyles = ScaledSheet.create({ | ||
fab: { | ||
width: '55@s', | ||
height: '55@s', | ||
borderRadius: '55@s', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
bottom: 0, | ||
right: 0, | ||
zIndex: 1, | ||
elevation: 4, | ||
backgroundColor: commonColor.primary, | ||
shadowOffset: { | ||
width: 0, | ||
height: 1 | ||
}, | ||
shadowOpacity: 0.23, | ||
shadowRadius: 3.62 | ||
}, | ||
fabIcon: { | ||
fontSize: '18@s', | ||
color: commonColor.light | ||
}, | ||
placedFab: { | ||
margin: '14@s', | ||
position: 'absolute' | ||
} | ||
}); | ||
const portraitStyles = {}; | ||
const landscapeStyles = {}; | ||
return ResponsiveStylesSheet.createOriented({ | ||
landscape: deepmerge(commonStyles, landscapeStyles) as StyleSheet.NamedStyles<any>, | ||
portrait: deepmerge(commonStyles, portraitStyles) as StyleSheet.NamedStyles<any> | ||
}); | ||
} |
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
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
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
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
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
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
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
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
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
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
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
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