Skip to content
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

Hide preview button doesn't work on Android (works only on iOS) #224

Open
imamabdulazis opened this issue Feb 24, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@imamabdulazis
Copy link

Description

I am using @baronha/react-native-multiple-image-picker and trying to hide the preview button on Android using isHiddenPreviewButton: true. However, the button is still visible on Android, while it works as expected on iOS.

Expected Behavior

  • The preview button should be hidden on Android when isHiddenPreviewButton is set to true.
  • It should work consistently across both platforms.

Actual Behavior

  • On Android, the preview button remains visible even when isHiddenPreviewButton: true and isPreview: false is set in the config.
  • On iOS, the preview button is correctly hidden.

Configuration

import { Config } from '@baronha/react-native-multiple-image-picker';

export const mediaPickerConfig: Config = {
  maxFileSize: 10000000, // 10MB
  maxSelect: 10,
  maxVideo: 10,
  primaryColor: '#2365E9',
  backgroundDark: '#2f2f2f',
  numberOfColumn: 4,
  mediaType: 'all',
  selectBoxStyle: 'tick',
  selectMode: 'multiple',
  theme: 'dark',
  isPreview: false,  // Doesn't work on Android
  isShowPreviewList: false,
  allowHapticTouchPreview: false,
  allowSwipeToSelect: true,
  isHiddenPreviewButton: true, // Doesn't work on Android
  presentation: 'formSheet',
};

Steps to Reproduce

  • Configure @baronha/react-native-multiple-image-picker with the above settings.
  • Open the media picker on an Android device.
  • Observe that the preview button is still visible.

Environment

  • Package Version: 2.2.0
  • React Native Version: 0.75.3
  • Android Version: 15.0 | Emulator Pixel 7 Pro
  • iOS Version (for reference): 18.0

Additional Notes

  • If there's an alternative way to hide the preview button on Android, please advise. Thank you!

Screen.Recording.2025-02-24.at.8.58.49.PM.mov
Screen.Recording.2025-02-24.at.8.46.43.PM.mov

@baronha baronha self-assigned this Feb 24, 2025
@baronha baronha added the bug Something isn't working label Feb 24, 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
Projects
None yet
Development

No branches or pull requests

2 participants