1.1.10 • Published 7 years ago

react-native-row-component v1.1.10

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

react-native-row-component

Installation:

npm install --save react-native-row-component

Props:

PropFunctionality
colSizethe default is 12 (the size of the Row), in case of overflow, it will automatically send the column to the next row.
offsetthe default is 0
pullRightthe default is FALSE.

Example:

	import Row from 'react-native-row-component';
	... 
	<Row>
		<View colSize={5} style={{ height: 100, backgroundColor: 'red' }} />
		<View colSize={2} pullRight style={{ height: 100, backgroundColor: 'blue' }} />
		<View colSize={2} offset={7} style={{ height: 100, backgroundColor: 'green' }} />
	</Row>
	<Row>
		<View colSize={10} style={{ height: 100, backgroundColor: 'black' }} />
	</Row>

Result: Result

The colSize doesn´t need to be an integer. For example, if you need to divide a Row into five columns, you could do:

	<Row>
		<View colSize={2.4} style={{ height: 100, backgroundColor: 'red' }} />
		<View colSize={2.4} style={{ height: 100, backgroundColor: 'blue' }} />
		<View colSize={2.4} style={{ height: 100, backgroundColor: 'green' }} />
		<View colSize={2.4} style={{ height: 100, backgroundColor: 'black' }} />
		<View colSize={2.4} style={{ height: 100, backgroundColor: 'orange' }} />
	</Row>
1.1.10

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago