mirror of
https://github.com/abhay-raizada/PeerScribe.git
synced 2026-04-26 16:24:03 +00:00
Fix Text issue on dark mode
This commit is contained in:
@@ -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 {PropsWithChildren, useState} from 'react';
|
||||
import {Button, Card, Modal} from '@ant-design/react-native';
|
||||
@@ -12,6 +12,8 @@ type SectionProps = PropsWithChildren<{
|
||||
title: string;
|
||||
}>;
|
||||
|
||||
const colorScheme = Appearance.getColorScheme();
|
||||
|
||||
const backgroundStyle = {
|
||||
backgroundColor: Colors.darker,
|
||||
};
|
||||
@@ -138,7 +140,7 @@ export const PrescriptionCreator = ({form} : {form: any}) => {
|
||||
<Section title="Choose a Pharmacy">
|
||||
<View style={{ width: width -40}}>
|
||||
<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>
|
||||
</Section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user