React-native-modal-datetime-picker: Possible to change Background Color using Expo

Created on 12 May 2020  路  3Comments  路  Source: mmazzarolo/react-native-modal-datetime-picker

Ask your Question


Hi, it's my first query on here. I was researching on this but i can't seem to find a solution.

I'm running on Expo and was wondering if it's possible to change the background colour of the modal?

Irrelevant but I only have an Android test device. The default colour is blue. I think that one has to eject Expo to be able to change the background colour? I'm quite new to Expo/RN.

Thanks!

EDIT: Also i think the minuteInterval doesn't work on Android?

question

Most helpful comment

Hi @mmazzarolo , i'm using Expo. The related thread you suggested would require me to eject Expo. And i think the minuteInterval prop only applies for iOS. I guess i would pass for the minuteInterval.
Thank you!

All 3 comments

馃憢 @domsterthebot
About the colour: this is the related thread https://github.com/react-native-community/datetimepicker/issues/20

About the minuteInterval prop: You should check https://github.com/react-native-community/datetimepicker, which is the library used under the hood by this modal picker

Hi @mmazzarolo , i'm using Expo. The related thread you suggested would require me to eject Expo. And i think the minuteInterval prop only applies for iOS. I guess i would pass for the minuteInterval.
Thank you!

It's true, I don't find any way to change the background color of the Android modal using Expo.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

crobinson42 picture crobinson42  路  6Comments

yash-atreya picture yash-atreya  路  3Comments

onusgit picture onusgit  路  7Comments

ponleukea picture ponleukea  路  7Comments

mustafaskyer picture mustafaskyer  路  3Comments