1.0.16 • Published 7 years ago

react-native-apex-ui v1.0.16

Weekly downloads
3
License
Apache License
Repository
-
Last release
7 years ago

A react native cross platform ui kit.

ui

include

  • Button
  • Dialog
  • Drawer
  • ActionSheet
  • Toast
  • Tooltip
  • Carousel
  • Popover
  • Tag
  • TouchableRipple
  • ...

Installation

  • step 1
npm i react-native-apex-ui --save
  • step 2
react-native link react-native-vector-icons

Get Started

UiThemeProvider

At the beginning, apex ui components require a UiThemeProvider to be provided. You can’t use any components without wrapping the root component in <UiThemeProvider>:

import {UiThemeProvider} from 'react-native-apex-ui';

const App = () => (
  <UiThemeProvider>
    <Root />
  </UiThemeProvider>
);

Following that, you can use any of the components:

import {RippleButton, Toast} from 'react-native-apex-ui';

class SimpleToastExample extends Component {
	state = {
		open: false,
	};

	handleRequestOpen = () => {
		this.setState({
			open: true,
		});
	}

	handleRequestClose = () => {
		this.setState({
			open: false,
		});
	};

	render() {
		return (
			<View>
				<RippleButton 
					caption='BUTTON'
					backgroundColor='#2c8cff'
					captionColor='#fff'
					onPress={this.handleRequestOpen}
				/>
				<Toast 
					open={this.state.open}
					message='Hello toast!'
					onRequestClose={this.handleRequestClose}
				/>
			</View>
		);
	}
}

Examples

check out RNApexUIExample

Thanks

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago