@ticmakers-react-native/button
v1.0.5
Published
TIC Makers - React Native Button
Downloads
16
Maintainers
Readme
TIC Makers - React Native Button
React native component for button.
Powered by TIC Makers
Demo
Install
Install @ticmakers-react-native/button
package and save into package.json
:
NPM
$ npm install @ticmakers-react-native/button --save
Yarn
$ yarn add @ticmakers-react-native/button
How to use?
import React from 'react'
import Button from '@ticmakers-react-native/button'
import Icon from '@ticmakers-react-native/icon'
export default class App extends React.Component {
render() {
return (
<Button title="My button" iconLeft={{ name: 'star' }} />
// OR
<Button iconRight>
<Text>My button</Text>
<Icon name="star" />
</Button>
)
}
}
Properties
| Name | Type | Default Value | Definition | | ---- | ---- | ------------- | ---------- | | title | - | - | -
Todo
- Test on iOS
- Improve and add new features
- Add more styles
- Improve readme (example & demo)
- Create tests