Hey! Any of you used `ThreeTenABP` library to mana...
# compose
n
Hey! Any of you used
ThreeTenABP
library to manage dates in Android? As soon as a Date is used in the composables, the Preview fires an error because the timezone data is not registered. Is there anyway to initialize this kind of libraries in Preview mode?
j
I don't know, but why not abstract away threeten dependencies (like state hoisting), use
Strings
and
Longs
as Parameters for your composable primitives instead?
n
And who do you reckon should do the parsing? The
ViewModel
? I feel like that would limit the power of the view model and put some view logic in the
ViewModel
that should be hosted on the view themselves.
a
You should consider switching to core library desugaring.
K 1
n
Didn't had a clue that it existed. Thanks for it, looks promising.