Skip to main content

paddingHorizontal()

Applies paddingHorizontal according to platform and version to any component that accepts the paddingHorizontal property in its style.

Usage

import React from 'react';
import { Text, View } from "react-native";

// React Native UI DevKit
import { paddingHorizontal } from 'react-native-ui-devkit';

const App = () => {
return (
<View style={[
paddingHorizontal(),
{
// your custom style here...
}]}>
<Text>Text</Text>
</View>
);
}

export default App;