Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bothrs/react-native-layout

Package Overview
Dependencies
Maintainers
7
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bothrs/react-native-layout

Utility components for handling interface layouts in React Native.

  • 0.5.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
decreased by-28%
Maintainers
7
Weekly downloads
 
Created
Source

@bothrs/react-native-layout

Utility components for handling interface layouts in React Native.

Installation

yarn add @bothrs/react-native-layout

Usage

import { Padding, Margin, Spacing, Line } from "@bothrs/react-native-layout";

// ...

API

Padding | Margin

A container component that applies the margin or padding around its children.

Props

  • amount
    • top?: number | string
    • right?: number | string
    • bottom?: number | string
    • left?: number | string
    • horizontal?: number | string
    • vertical?: number | string
  • backgroundColor?: string
  • onLayout?: (e: LayoutChangeEvent) => void

Spacing

A component that renders with the given width or height.

Props

  • width?: number | string
  • height?: number | string
  • flex?: boolean

Line

A component that renders a line with a given color and thickness.

Props

  • color: string
  • direction?: 'horizontal' | 'vertical'
  • thickness?: number

Flex

A component that helps with aligning a Flex container.

Props

  • All style properties that are specific to Flex;
    • 'alignContent'
    • 'alignItems'
    • 'alignSelf'
    • 'flex'
    • 'flexBasis'
    • 'flexDirection'
    • 'flexGrow'
    • 'flexShrink'
    • 'flexWrap'
    • 'justifyContent'

FlexColumn

A component that helps with aligning a Flex container.

  • Sets flexDirection: 'column' as default.

FlexRow

A component that helps with aligning a Flex Row container.

  • Sets flexDirection: 'row' as default.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Keywords

FAQs

Package last updated on 17 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc