0.0.2 • Published 5 years ago

@ecreeth/rn-flex v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@ecreeth/rn-flex

Flex Component Props

direction

PropertyTypeRequiredDefault
rowstringno-
row-reversestringno-
columnstringnoyes
column-reversestringno-

justify

PropertyTypeRequiredDefault
flex-startstringnoyes
flex-endstringno-
centerstringno-
space-betweenstringno-
space-aroundstringno-
space-evenlystringno-

align

PropertyTypeRequiredDefault
flex-startstringno-
flex-endstringno-
centerstringno-
baselinestringno-
stretchstringnoyes

wrap

PropertyTypeRequiredDefault
nowrapstringnoyes
wrapstringno-
wrap-reversestringno-

Quick Start

Installation

Create a new React Native App:

$ react-native init HelloWorld
$ cd HelloWorld

Install @ecreeth/rn-flex to your project:

$ yarn add @ecreeth/rn-flex or
$ npm install @ecreeth/rn-flex

Examples

Justify

function App() {
  return (
    <View>
       <Text>Default Behavior</Text>
        <Flex direction="row" justify="space-around" align="center">
          <Red />
          <Green />
          <Blue />
        </Flex>
    </View>
  );
}