Set Line Height for ToggleSwitch (ToggleButton)

Summary:
Set line height to make space between lines look better in cramper space (See Test Plan).

This has direct side effect on:
- https://fburl.com/diffusion/0dtt1cgl
- ToggledSection component

In addition, this diff adds an offline cache.

Reviewed By: mweststrate

Differential Revision: D20574486

fbshipit-source-id: 8689bc95e2f18409e82c923fea361e033e77bc00
This commit is contained in:
Chaiwat Ekkaewnumchai
2020-03-23 04:39:39 -07:00
committed by Facebook GitHub Bot
parent 74d8da7c4b
commit 69fc5e8834

View File

@@ -47,6 +47,7 @@ Container.displayName = 'ToggleSwitch:Container';
const Label = styled(Text)({
marginLeft: 7,
marginRight: 7,
lineHeight: 1.3,
});
Label.displayName = 'ToggleSwitch:Label';