This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AUD-1008] EnablePushNotifications reminder drawer (#137)
* Add CollectibleDetails * Add fullscreen drawer * Add collectible media * [WIP] Style collectible details * Finish styling CollectibleDetailsDrawer * Get video displaying properly * Add video components * Cleanup * Styling fixes for android * Set color of volume icon * Change variable name in useThemedStyles * Animate border radius for fullscreen drawer * [WIP] Add EnablePushNotificationsDrawer * Initial styling of the EnablePushNotificationsDrawer * Set fills of icons * Make sure reminder is still promptable from web * Add text component to set default font family * Use new Text component * Click outside of drawer to close * Fix lint issues * Fix color of cosign icon * Move background styles to style sheet * Address PR comments * Show push notif reminder after sign in with new rn flow
- Loading branch information
Showing
27 changed files
with
542 additions
and
134 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
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.
14 changes: 14 additions & 0 deletions
14
packages/mobile/src/assets/images/iconGradientNotification.svg
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
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,45 @@ | ||
import React from 'react' | ||
import { TouchableHighlight, ViewStyle, StyleSheet } from 'react-native' | ||
import { useThemeColors } from '../../utils/theme' | ||
import Text from '../../components/text' | ||
|
||
import { ThemeColors, useThemedStyles } from '../../hooks/useThemedStyles' | ||
|
||
const createStyles = (themeColors: ThemeColors) => | ||
StyleSheet.create({ | ||
button: { | ||
backgroundColor: themeColors.primary, | ||
borderRadius: 4, | ||
display: 'flex', | ||
alignItems: 'center', | ||
padding: 16 | ||
}, | ||
text: { | ||
color: themeColors.staticWhite, | ||
fontSize: 16 | ||
} | ||
}) | ||
|
||
type ButtonProps = { | ||
onPress: () => void | ||
title: string | ||
style?: ViewStyle | ||
} | ||
|
||
const Button = ({ style, onPress, title }: ButtonProps) => { | ||
const styles = useThemedStyles(createStyles) | ||
const { primaryDark1 } = useThemeColors() | ||
return ( | ||
<TouchableHighlight | ||
style={[styles.button, style]} | ||
onPress={onPress} | ||
underlayColor={primaryDark1} | ||
> | ||
<Text style={styles.text} weight='bold'> | ||
{title} | ||
</Text> | ||
</TouchableHighlight> | ||
) | ||
} | ||
|
||
export default Button |
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 @@ | ||
export { default } from './Button' |
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
Oops, something went wrong.