HomePhabricator
Diffusion Comm 5319bd8b3c0b

[native] Introduce derivedDimensionsInfoSelector for safeAreaHeight

Description

[native] Introduce derivedDimensionsInfoSelector for safeAreaHeight

Summary:
Following up on conversation here. I had remove native/selectors/dimension-selectors.js earlier, thinking that we could just use DimensionsInfo directly.

But I think there is a valid point to be made that we are copy-pasting the safeAreaHeight calculation in too many places. So I'm reintroducing a selector here to cache the derived data.

Reviewers: palys-swm

Reviewed By: palys-swm

Subscribers: KatPo, zrebcu411, Adrian

Differential Revision: https://phabricator.ashoat.com/D55

Details

Provenance
Ashoat Tevosyan <ashoat@gmail.com>Authored on Sep 2 2020, 1:34 PM
Reviewer
tomek
Differential Revision
Restricted Differential Revision
Parents
rCOMMcca55914b35f: [native] Make reanimated code in account modals more readable
Branches
Unknown
Tags
Unknown