Nacho Ruiz Martin

    Nacho Ruiz Martin

    1 year ago
    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?
    joney

    joney

    1 year ago
    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?
    Nacho Ruiz Martin

    Nacho Ruiz Martin

    1 year ago
    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.
    Albert Chang

    Albert Chang

    1 year ago
    You should consider switching to core library desugaring.
    Nacho Ruiz Martin

    Nacho Ruiz Martin

    1 year ago
    Didn't had a clue that it existed. Thanks for it, looks promising.