Skip to content

saveLabel is cut off on some Android devices #476

Open
@RomanSytnyk

Description

@RomanSytnyk

Current behaviour

On some devices, like Poco F3, Samsung galaxy S23+ (client's phone), saveLabel (text 'Confirm') is cut off.
It seems there were no problems with that before migrating to Expo 53 + new arch

Expected behaviour

'Confirm' saveLabel is displayed in full length, not truncated

How to reproduce?

Our code snippet:

import { MD3LightTheme as DefaultTheme } from "react-native-paper";

export const calendarTheme = {
  ...DefaultTheme,
  roundness: 1,
  colors: {
    ...DefaultTheme.colors,
    primary: COLORS.GREEN.PRIMARY,
...
  },
};

<PaperProvider theme={calendarTheme}>
        <DatePickerModal
          locale={getCurrentLanguage()}
          mode="single"
          visible={open}
          onDismiss={onDismiss}
          endDate={new Date(customDate || "")}
          date={new Date(customDate || "")}
          onConfirm={onConfirmDate}
          validRange={{ startDate: new Date() }}
          saveLabel={t("commonText.confirm")}
          startWeekOnMonday
        />
      </PaperProvider>

Preview

Image
Image

Your Environment

software version
android 13
react-native 0.79.2
react-native-paper 5.14.5
react-native-paper-dates 0.22.43
expo sdk 53.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds reproNeeds reproducible examplestale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions