-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Pins & App-wide refactoring (#18)
* Upgrade RN from 0.71.1 to 0.71.4 * Add Pinned apps & Refactor existing codebase * Refactor * Bump app version & remove un-needed font
- Loading branch information
Showing
67 changed files
with
4,217 additions
and
3,137 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16 | ||
18 |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd ./android | ||
cd ./android || exit | ||
|
||
echo "[!] Current directory $(pwd)" | ||
|
||
|
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
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -1,45 +1,25 @@ | ||
// React | ||
import React, { useContext } from 'react' | ||
// React Native | ||
import { Pressable, PressableAndroidRippleConfig, StyleSheet, View } from 'react-native' | ||
import { Pressable, View } from 'react-native' | ||
// Components | ||
import CustomIcon from './shared/CustomIcon' | ||
// Contexts | ||
import GlobalContext from '../contexts/GlobalContext' | ||
// Icon | ||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons' | ||
// Constants | ||
import { PRIMARY_HEX_COLOR, SECONDARY_HEX_COLOR } from '../constants' | ||
|
||
const rippleConfig: PressableAndroidRippleConfig = { | ||
color: SECONDARY_HEX_COLOR, | ||
borderless: true, | ||
foreground: true, | ||
radius: 20, | ||
} | ||
import { PRIMARY_COLOR } from '../constants' | ||
import { iconsStyle, iconsPressableConfig } from '../shared/bottom-container' | ||
|
||
const AllAppsIcon = () => { | ||
const { toggleDisplayAllApps } = useContext(GlobalContext) | ||
|
||
return ( | ||
<View style={styles.wrapper}> | ||
<Pressable | ||
testID='all-apps-toggle-button' | ||
onPress={toggleDisplayAllApps} | ||
android_disableSound={true} | ||
android_ripple={rippleConfig}> | ||
<Icon name='hexagon-outline' size={34} style={styles.icon} color={PRIMARY_HEX_COLOR} /> | ||
<View style={iconsStyle.wrapper}> | ||
<Pressable testID='all-apps-toggle-button' onPress={toggleDisplayAllApps} {...iconsPressableConfig}> | ||
<CustomIcon name='hexagon-outline' size={34} style={iconsStyle.icon} color={PRIMARY_COLOR} /> | ||
</Pressable> | ||
</View> | ||
) | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
wrapper: { | ||
alignItems: 'center', | ||
flexDirection: 'row', | ||
}, | ||
icon: { | ||
margin: 5, | ||
}, | ||
}) | ||
|
||
export default AllAppsIcon |
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
Oops, something went wrong.