Skip to content

Releases: santomegonzalo/react-native-floating-action

New Typings and new custom styles for text

06 Aug 07:23
3194f80
Compare
Choose a tag to compare
  • Added Typings and fixed no actions error. Thanks @jpinz
  • Allow custom style for text. Thanks @msevestre

Replace .png into a React Component

15 Jul 10:49
4bee246
Compare
Choose a tag to compare

There were some errors with the latest version of react and gradle 3 and 4 #45 and facebook/react-native#16906 so I decided to replace the image with a simple react component.

New feature to listen keyboard events

14 Jul 11:59
5eacd84
Compare
Choose a tag to compare

Thanks to @hashmatmuqbil . I introduced a feature so the button will always be visible when the keyboard will appear.

The main component now have two new properties:

  • listenKeyboard will enable the keyboard listeners to move up and down when the keyboard appear and hide
  • dismissKeyboardOnPress this property is related to listenKeyboard, now the user have the possibility to hide the keyboard when the user click the main button. This is because sometimes we have a big a list of actions and listenKeyboard could ended up showing actions outside the screen.

New custom render function and icon size

08 Jul 19:00
2e07fc6
Compare
Choose a tag to compare

Thanks for the support, today we are realising a new version with the following features:

  • FloatingActionItem now support render function. To create your own component, please check expo and scroll down to see some examples. Thanks a lot @hedvigoscar
  • FloatingActionItem now support two properties iconWidth and iconHeight, this will help us to support network images. Thanks a lot @dopey2

Fix Android "visible" animation

26 Mar 15:21
1358fad
Compare
Choose a tag to compare

Android has errors when we use interpolations with initial value 1. I added a new fade animation that will not bring any performance issue.

More about this bug facebook/react-native#6278

Optimisations and Documentation

25 Mar 15:02
Compare
Choose a tag to compare
  • Remove lodash: it was unnecessary all the extra size
  • Update examples
  • Update README, it was too old
  • Adding warnings for deprecations

Deprecations:

  • FloatingAction buttonColor property was deprecated, today will show warnings, please use color
  • FloatingActionItem elevation property was deprecated, today will show warnings, please use textElevation

Change "actionsTextColor" and "actionsTextBackground" for "textColor" and "textBackground"

09 Feb 09:38
8b34ca0
Compare
Choose a tag to compare

We introduce a breaking change but for now, the old way is still supported

New properties

  • textColor instead of actionsTextColor
  • textBackground instead of actionsTextBackground

Fix examples text

09 Feb 08:55
9f6a177
Compare
Choose a tag to compare

With the new examples, we need to upgrade our Property component.

New examples and change properties name

09 Feb 08:54
9f6a177
Compare
Choose a tag to compare

We decided to change the name for these properties applied on Actions and not Main Action:

  • actionsTextBackground in favor of textBackground
  • actionsTextColor in favor of textColor

new attribute "actionsPaddingTopBottom"

27 Jan 13:28
d8164c7
Compare
Choose a tag to compare
  • New property actionsPaddingTopBottom to define the distance between actions. This property is defined on FloatingAction and not on FloatingActionItem
  • Fix an error where the distance between the first FloatingActionItem and FloatingAction is not the same as the distance between FloatingActionItem