Big spacing between DatePickerInput and component before or component after it. #410
Labels
bug
Something isn't working
needs more info
Needs more information
needs repro
Needs reproducible example
Current behaviour
Big spacing between DatePickerInput and component before or component after it.
I tried several kind of components like Text/Button/Text Input and I always hit this problem with DatePickerInput
Expected behaviour
There shouldn't be such a big space.
How to reproduce?
import React from "react";
import { format } from 'date-fns';
import { View, Text } from "react-native";
import { DatePickerInput } from 'react-native-paper-dates';
import { SafeAreaProvider } from "react-native-safe-area-context";
export default function App() {
const [inputDate, setInputDate] = React.useState(new Date())
return (
<View style={{justifyContent: 'center', flex: 1, alignItems: 'center'}}>
abc
abc
<DatePickerInput
locale="en"
label="Birthdate"
value={inputDate}
onChange={(d) => setInputDate(d)}
inputMode="start"
style={{width: 200}}
mode="outlined"
/>
abc
abc
);
}
Preview
What have you tried so far?
Can easily reproduce this with the snack demo on react-native-paper-dates-input
See https://snack.expo.dev/@fitzwabs/react-native-paper-dates-input
Simply add some Text components before and after DatePickerInput
Your Environment
On both IOS and android
The text was updated successfully, but these errors were encountered: