Skip to content

saveLabel is cut off on some Android devices #476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
RomanSytnyk opened this issue May 28, 2025 · 1 comment
Open

saveLabel is cut off on some Android devices #476

RomanSytnyk opened this issue May 28, 2025 · 1 comment
Labels
bug Something isn't working needs repro Needs reproducible example stale

Comments

@RomanSytnyk
Copy link

RomanSytnyk commented May 28, 2025

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
@RomanSytnyk RomanSytnyk added the bug Something isn't working label May 28, 2025
@iM-GeeKy iM-GeeKy added the needs repro Needs reproducible example label May 29, 2025
Copy link
Contributor

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.

@iM-GeeKy iM-GeeKy added the stale label Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs repro Needs reproducible example stale
Projects
None yet
Development

No branches or pull requests

2 participants