-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: support ipad in xcode * feat: hide BottomBar * feat: add search and collections buttons to navbar * refactor: remove unused code * fix: center logo better * fix: include import for Platform * fix: visually align backbutton with the same padding as gurbaniscreen buttons * fix: only apply margin fix to outer icons (not every child in a group of icons) * refactor: create isTablet in helpers * feat: add iPad emulator to package.json * feat: add split view support for iPad * feat: hide title in logo when narrow width * feat: widen range of bottom drawers * fix: use correct edge for width in landscape test * fix: nit * refactor: remove unused style * style: mega-nit * fix: logic in isTablet * refactor: remove duplicate assignment * refactor: use theme constant for negative margin fix * style: nit * refactor: simplify code * style: write negative values with preceding hyphen * refactor: use name for breakpoint
- Loading branch information
Showing
13 changed files
with
84 additions
and
42 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Image, StyleSheet, useWindowDimensions, View } from 'react-native' | ||
|
||
import logo from '../../assets/images/logo.png' | ||
import Units from '../themes/units' | ||
import Typography from './Typography' | ||
|
||
const styles = StyleSheet.create( { | ||
headerTitle: { | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
}, | ||
logoIcon: { | ||
width: 28, | ||
height: 28, | ||
marginRight: 6.5, | ||
}, | ||
logoText: { | ||
fontSize: 20, | ||
lineHeight: 24, | ||
fontWeight: '300', | ||
}, | ||
} ) | ||
|
||
const Logo = () => { | ||
const { width } = useWindowDimensions() | ||
|
||
return ( | ||
<View style={styles.headerTitle}> | ||
<Image style={styles.logoIcon} source={logo} /> | ||
{width > Units.ThinSplitViewWidth | ||
&& <Typography style={styles.logoText}>Shabad OS</Typography>} | ||
</View> | ||
) | ||
} | ||
|
||
export default Logo |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Dimensions, Platform } from 'react-native' | ||
|
||
const window = Dimensions.get( 'window' ) | ||
const { width, height } = window | ||
const isTablet = ( Platform.OS === 'ios' && Platform.isPad ) || ( Platform.OS === 'android' && ( ( width >= 960 && height >= 720 ) || ( width >= 720 && height >= 960 ) ) ) | ||
|
||
export default isTablet |
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