Skip to content

Commit

Permalink
fix: attachment picker ios select more photos component theme
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 committed Apr 2, 2024
1 parent a2119af commit 22c57e3
Showing 1 changed file with 24 additions and 2 deletions.
@@ -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',
},
});

0 comments on commit 22c57e3

Please sign in to comment.