You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we select first time date showing fine and good .
but when we again open modal to select other date showing overlapped text , you can see in image.
here you can see our code:
index.js file:
registerTranslation('en-GB', enGB)
on profileScreen.jsx file:
const [formData, setFormData] = useState({
personalImage: null,
firstName: '',
middleName: '',
lastName: '',
dateOfBirth: null, // Set initial value as null
email: '',
referalCode: '',
});
<CustomTextInput
leftIcon={'calendar'}
label="Date of Birth"
placeholder="Select your Date of Birth"
value={formData.dateOfBirth || ''} // Default to empty string if null
onFocus={() => setDatePickerVisible(true)}
editable={true} // Prevent manual editing
error={!!errors.dateOfBirth}
errorText={errors.dateOfBirth}
/>
<DatePickerModal
mode="single"
presentationStyle='pageSheet'
calendarIcon='calendar'
locale='en-GB'
visible={isDatePickerVisible}
onDismiss={() => setDatePickerVisible(false)}
date={
formData.dateOfBirth
? dayjs(formData.dateOfBirth, 'DD-MM-YYYY').toDate()
: new Date()
} // Convert to correct date format
onConfirm={(params) => handleDateChange(params.date)}
/>
Expected behaviour
its should not overlapped i have used this formate date DD-MM-YYYY ,
How to reproduce?
Preview
What have you tried so far?
i have removed dayjs but still not wokring
Your Environment
software
version
android
14
react-native
0.76.5
react-native-paper
^5.12.5
The text was updated successfully, but these errors were encountered:
Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on snack.expo.dev. If it's not possible to repro it on snack.expo.dev, then you can also provide the repro in a GitHub repository.
Current behaviour
When we select first time date showing fine and good .
but when we again open modal to select other date showing overlapped text , you can see in image.
here you can see our code:
index.js
file:on
profileScreen.jsx
file:Expected behaviour
its should not overlapped i have used this formate date DD-MM-YYYY ,
How to reproduce?
Preview
What have you tried so far?
i have removed dayjs but still not wokring
Your Environment
The text was updated successfully, but these errors were encountered: