Fix Text issue on dark mode

This commit is contained in:
Abhay Raizada
2024-04-05 14:25:23 +05:30
parent 92a8f24743
commit d4861c3b55
4 changed files with 445 additions and 409 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

View File

@@ -1,4 +1,4 @@
import {Alert, Dimensions, Image, StyleSheet, Text, View} from 'react-native'; import {Alert, Appearance, Dimensions, Image, StyleSheet, Text, View} from 'react-native';
import {Colors} from 'react-native/Libraries/NewAppScreen'; import {Colors} from 'react-native/Libraries/NewAppScreen';
import {PropsWithChildren, useState} from 'react'; import {PropsWithChildren, useState} from 'react';
import {Button, Card, Modal} from '@ant-design/react-native'; import {Button, Card, Modal} from '@ant-design/react-native';
@@ -12,6 +12,8 @@ type SectionProps = PropsWithChildren<{
title: string; title: string;
}>; }>;
const colorScheme = Appearance.getColorScheme();
const backgroundStyle = { const backgroundStyle = {
backgroundColor: Colors.darker, backgroundColor: Colors.darker,
}; };
@@ -138,7 +140,7 @@ export const PrescriptionCreator = ({form} : {form: any}) => {
<Section title="Choose a Pharmacy"> <Section title="Choose a Pharmacy">
<View style={{ width: width -40}}> <View style={{ width: width -40}}>
<Dropdown data={locationData} labelField={'label'} valueField={'label'} onChange={handleLocationChange} <Dropdown data={locationData} labelField={'label'} valueField={'label'} onChange={handleLocationChange}
renderItem={renderItem} style={{width: "100%"}}/> renderItem={renderItem} style={{width: "100%"}} placeholderStyle={{color: "white"}} selectedTextStyle={{color: 'white'}}/>
</View> </View>
</Section> </Section>