Mayank Sunil Pagar
cf3747957a
feat: mapped layout props for view component (#34590)
Summary:
This PR adds mapping for layout props, it maps
marginInlineStart: 'marginStart',
marginInlineEnd: 'marginEnd',
marginBlockStart: 'marginTop',
marginBlockEnd: 'marginBottom',
marginBlock: 'marginVertical',
marginInline: 'marginHorizontal',
paddingInlineStart: 'paddingStart',
paddingInlineEnd: 'paddingEnd',
paddingBlockStart: 'paddingTop',
paddingBlockEnd: 'paddingBottom',
paddingBlock: 'paddingVertical',
paddingInline: 'paddingHorizontal',
as requested on https://github.com/facebook/react-native/issues/34425
## Changelog
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[General][Added] - Added CSS logical properties by mapping layout props.
Pull Request resolved: https://github.com/facebook/react-native/pull/34590
Test Plan:
```js
<View
style={[
{
marginBlockStart: 5, // maps to "marginTop"
borderWidth: 1,
borderRadius: 5,
padding: 5,
}
]}>
<Text style={{fontSize: 11}}>Hello World!</Text>
</View>
```
Reviewed By: cipolleschi
Differential Revision: D41108750
Pulled By: necolas
fbshipit-source-id: 870b9b58a740aba12290a0604a9f6b52aa52de4c
2022-11-08 12:53:41 -08:00
..
2022-09-30 14:28:48 -07:00
2021-12-30 15:11:21 -08:00
2022-09-30 14:28:48 -07:00
2021-12-30 15:11:21 -08:00
2022-11-08 12:53:41 -08:00
2022-11-02 14:58:37 -07:00
2022-10-18 18:56:19 -07:00
2022-11-08 12:53:41 -08:00
2021-12-30 15:11:21 -08:00
2022-09-30 14:28:48 -07:00
2022-09-28 15:48:40 -07:00
2022-09-30 14:28:48 -07:00
2022-10-11 05:48:42 -07:00
2022-09-26 12:09:45 -07:00
2021-12-30 15:11:21 -08:00
2022-09-26 12:09:45 -07:00
2022-05-04 16:13:07 -07:00
2022-09-07 13:13:08 -07:00
2022-09-08 11:52:10 -07:00
2022-09-30 14:28:48 -07:00
2022-09-28 14:06:42 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-06-14 13:37:04 -07:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-11-07 09:52:52 -08:00
2021-12-30 15:11:21 -08:00
2022-10-28 17:40:26 -07:00
2022-09-30 14:28:48 -07:00
2022-09-28 14:06:42 -07:00