Memmy-App / memmy

An Apollo inspired open-source iOS and Android client for Lemmy built with React-Native. Find us on the App Store and Google Play!
GNU Affero General Public License v3.0
548 stars 58 forks source link

fix: use undefined instead of "unspecified" for `initialColorMode` #856

Closed rosvik closed 1 year ago

rosvik commented 1 year ago

PR Creator Checklist

Ensure you've checked the following before submitting your PR:

Summary

Please provide a summary of what your PR does

This changes the interfaces ITheme field initialColorMode to accept undefined instead if the string "unspecified", which caused typescript errors several places.

Since undefined is supported by keyboardAppearance, ActionSheets and tint (which is where this field used today), I think this is a more sensible fallback for themes without a initalColorMode.

Screenshots

If the UI has been changed, include screenshots. We will not review your PR without screenshots if they are applicable.

Not applicable.

Test Plan

Please documemnt the steps required to test your PR

There shouldn't be any visible changes.

joshua-davis-rose commented 1 year ago

Seems reasonable to me.