Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: attachment picker ios select more photos component theme
- Loading branch information
Showing
1 changed file
with
24 additions
and
2 deletions.
There are no files selected for viewing
26 changes: 24 additions & 2 deletions
26
package/src/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.tsx
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,10 +1,32 @@ | ||
import React from 'react'; | ||
import { Button } from 'react-native'; | ||
import { Pressable, StyleSheet, Text } from 'react-native'; | ||
|
||
import { useTheme } from '../../../contexts/themeContext/ThemeContext'; | ||
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext'; | ||
import { iOS14RefreshGallerySelection } from '../../../native'; | ||
|
||
export const AttachmentPickerIOSSelectMorePhotos = () => { | ||
const { t } = useTranslationContext(); | ||
return <Button onPress={iOS14RefreshGallerySelection} title={t('Select More Photos')} />; | ||
const { | ||
theme: { | ||
colors: { accent_blue, white }, | ||
}, | ||
} = useTheme(); | ||
return ( | ||
<Pressable | ||
onPress={iOS14RefreshGallerySelection} | ||
style={[styles.container, { backgroundColor: white }]} | ||
> | ||
<Text style={[styles.text, { color: accent_blue }]}>{t('Select More Photos')}</Text> | ||
</Pressable> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
container: {}, | ||
text: { | ||
fontSize: 16, | ||
paddingVertical: 10, | ||
textAlign: 'center', | ||
}, | ||
}); |