sAleksovski / react-native-android-widget

Build Android Widgets with React Native
https://sAleksovski.github.io/react-native-android-widget/
MIT License
546 stars 22 forks source link

chore: add targetCell values #83

Closed justinkx closed 2 months ago

justinkx commented 2 months ago

https://developer.android.com/develop/ui/views/appwidgets/layouts#anatomy_determining_size

sAleksovski commented 2 months ago

Please update the CHANGELOG.md file with

## [Unreleased] (already there)

### Added

- `targetCellWidth` and `targetCellHeight` options in config plugin

and the docs wherever android:minWidth="320dp" is used, and add targetCellWidth = 5 and targetCellHeight = 2 values.

Also, did you try this on Android 11 or older?

justinkx commented 2 months ago

Also, did you try this on Android 11 or older?

In Android 11 and Older , cell width is not supported hence it will pick only minWidth and minHeight values.

sAleksovski commented 2 months ago

Thanks!

I just released 0.14.0 containing this feature.