-
-
Notifications
You must be signed in to change notification settings - Fork 412
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
feat: create expo plugin to customize native style #801
feat: create expo plugin to customize native style #801
Conversation
e23c9d1
to
f9f118c
Compare
colorAccent: {attrName: 'colorAccent', colorName: 'datePicker_colorAccent'}, | ||
colorControlActivated: { | ||
attrName: 'colorControlActivated', | ||
colorName: 'datePicker_colorControlActivated', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is a good idea, but I added the prefix datePicker_
and timePicker_
for the new colors to avoid polluting the global scope just in case.
I guess we'll have to wait until like 2025. |
@brunohkbx anything we can do to help move this forward? |
Co-authored-by: Gabriel Belgamo <19699724+belgamo@users.noreply.github.com>
To give an answer to @mribbons and @Haukez - to move a stale PR forward, you can fork the original branch, address the comments from the review, write docs, test the implementation and submit a new PR 🙂. This PR will be merged soon. Thank you @brunohkbx! |
🎉 This issue has been resolved in version 8.2.0 🎉 If this package helps you, consider sponsoring us! 🚀 |
@vonovak What about |
Summary
This PR is a proposal to implement an expo plugin to be able to customize both Android native components DatePickerDialog and TimePickerDialog.
Resolves #20
References
https://www.tutorialsbuzz.com/2019/09/android-datepicker-dialog-styling-kotlin.html
https://www.tutorialsbuzz.com/2019/09/android-timepicker-dialog-styling.html
Test Plan
styles.xml
Entries added in the style
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
New style entries added
colors.xml
values-night/colors.xml
What's required for testing (prerequisites)?
expo init
expo install @react-native-community/datetimepicker
What are the steps to reproduce (after prerequisites)?
You should see the new styles applied to either a RNDateTimePicker with
mode="date"
ormode="time"
Compatibility
Checklist
README.md
example/App.js
)