Skip to content

DatePickerInput overlaps other react native paper inputΒ #486

@Avotraina

Description

@Avotraina

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch [email protected] for the project I'm working on.

The DatePickerInput always takes a fixed position that overlaps the other react native paper input inside a View

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-paper-dates/src/Date/DatePickerInputWithoutModal.tsx b/node_modules/react-native-paper-dates/src/Date/DatePickerInputWithoutModal.tsx
index 1c9770c..1963b32 100644
--- a/node_modules/react-native-paper-dates/src/Date/DatePickerInputWithoutModal.tsx
+++ b/node_modules/react-native-paper-dates/src/Date/DatePickerInputWithoutModal.tsx
@@ -142,7 +142,7 @@ function getLabel({
 
 const styles = StyleSheet.create({
   root: {
-    flex: 1,
+    // flex: 1,
     flexGrow: 1,
     justifyContent: 'center',
     alignItems: 'flex-start',

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions