react-native-paper-dates icon indicating copy to clipboard operation
react-native-paper-dates copied to clipboard

DatePickerModal shows weird icons on Android.

Open Josh2941 opened this issue 1 year ago • 2 comments

Current behaviour

DatePickerModel shows weird icons when opened on Android using react-native.

Expected behaviour

DatePickerModel should show proper icons as mentioned in documentation and examples

How to reproduce?

Follow usual installation as per documentation

Preview

Screenshot_1708377915

What have you tried so far?

Tried installing all the fonts from 'react-native-vector-icons'

Your Environment

"react-native": "0.72.5", "react-native-paper": "5.12.3", "react-native-paper-dates": "0.21.9", "node": "18.16.0" "yarn": "1.22.5"

Josh2941 avatar Feb 19 '24 21:02 Josh2941

Hey! Thanks for opening the issue. Can you provide more information about the issue? Please fill the issue template when opening the issue without deleting any section. We need all the information we can, to be able to help. Make sure to at least provide - Current behaviour, Expected behaviour, A way to reproduce the issue with minimal code (link to snack.expo.dev) or a repo on GitHub, and the information about your environment (such as the platform of the device, versions of all the packages etc.).

github-actions[bot] avatar Feb 23 '24 13:02 github-actions[bot]

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.

github-actions[bot] avatar Feb 23 '24 13:02 github-actions[bot]

I think you have a strange react-native-vector-icons library installed?

RichardLindhout avatar Feb 29 '24 14:02 RichardLindhout

Maybe related too: https://github.com/web-ridge/react-native-paper-dates/issues/370

RichardLindhout avatar Feb 29 '24 14:02 RichardLindhout

Just in case someone encounters exactly the same issue on Android (as I have just now): this is due to missing a step in react-native-vector-icons setup (please see https://github.com/oblador/react-native-vector-icons), specifically adding apply from: file("../../node_modules/react-native-vector-icons/fonts.gradle") into android/app/build.gradle - at least for me it fixed me

MalgoBlock avatar Apr 17 '24 06:04 MalgoBlock

以防万一有人在 Android 上遇到完全相同的问题(就像我刚才遇到的):这是由于react-native-vector-icons设置中缺少一个步骤(请参阅https://github.com/oblador/react-native-vector-icons),特别是添加apply from: file("../../node_modules/react-native-vector-icons/fonts.gradle")到 android/app/build.gradle - 至少对我来说它解决了我的问题

Thanks bro, I did overlook that step too hh

shuo-hiwintech avatar Jul 14 '24 13:07 shuo-hiwintech