Skip to content

Commit

Permalink
Merge pull request #23 from santomegonzalo/version-bump
Browse files Browse the repository at this point in the history
version bump
  • Loading branch information
santomegonzalo authored Jan 19, 2018
2 parents 50c5ee9 + f82753c commit 38b3243
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,18 @@ import { FloatingAction } from 'react-native-floating-action';

**FloatingAction**

| Property | Type | Default | Description |
|-------------------------|-----------------------|-----------------------|------------------------------------------------------------------------------------------------------------|
| actions | array | [] | Actions to be show once user press the main button |
| buttonColor | string | #1253bc | Color of the main button |
| distanceToEdge | number | 30 | Distance from button to edge |
| visible | boolean | true | Hide or Show the component using an animation |
| overlayColor | string | rgba(68, 68, 68, 0.6) | Color of the background overlay |
| position | string | right | Position to render the main button and actions, options: (**left**, **right**, **center**) |
| overrideWithAction | string | false | Override the main action with the first action inside list actions, will not show other action |
| floatingIcon | node | ReactElement | | Change the default plus icon using **require(pathToImage)** or **ReactElement** |
| onPressItem | function | | Function to be call as soon as the user select an option from actions. Will return the name of the action. |
| Property | Type | Default | Description |
|-------------------------|-----------------------|-----------------------|---------------------------------------------------------------------------------------------------------------------|
| actions | array | [] | Actions to be show once user press the main button |
| buttonColor | string | #1253bc | Color of the main button |
| distanceToEdge | number | 30 | Distance from button to edge |
| visible | boolean | true | Hide or Show the component using an animation |
| overlayColor | string | rgba(68, 68, 68, 0.6) | Color of the background overlay |
| position | string | right | Position to render the main button and actions, options: (**left**, **right**, **center**) |
| overrideWithAction | string | false | Override the main action with the first action inside list actions, will not show other action |
| floatingIcon | node | ReactElement | | Change the default plus icon using **require(pathToImage)** or **ReactElement** |
| onPressItem | function | | Function to be call as soon as the user select an option from actions. Will return the name of the action. |
| onPressMain | function | | Function to be call as soon as use click main button and will return **true** or **false** depeneding of the state. |

**Actions**

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-floating-action",
"version": "1.6.1",
"version": "1.6.2",
"description": "floating action component for react-native",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit 38b3243

Please sign in to comment.