New NativeBase Update! πŸ™Œ

Now at v2.3.8!

GeekyAnts
The NativeBase v2.0 Blog [ Deprecated ]
2 min readFeb 8, 2018

--

We are excited to announce the latest update of NativeBase.

This new update brings with it multiple new features, upgrades and bug fixes!

Dev-Dependencies

Upgraded react-native-easy-grid from 0.1.15 to 0.1.17.

Enhancement Features

Button

We have improved the theme structure of the Button component to remove code redundancies.

CardItem

The theme structure of CardItem component has been improved to remove code redundancies

Icon

Icon Type can now be accepted as a prop.

List

Added enable EmptySections flag to List component. You can now render empty section headers as well.

Toast

Toast component now comes with the onClose callback.

We have also fixed the timeout bug in Toast. The timeout ID of toast is saved when it is shown so that any existing timeout can be cleared when a new toast is shown. This way, the old toast does not prematurely close the new toast.

TypeScript

In order to prevent tslint error, we have added optional SwipeRow properties.

Bug Fixes

v2.3.8 comes with multiple bug fixes, making NativeBase more stable.

  • Input: Floating Label is cropped from top while it floats on top.
  • H1, H2, and H3 can now take numerical and string as input.
  • Segment: We have fixed the segment overlapping with the Right element in the Header.
  • Theme: We have fixed the menu icon color for Android devices.

TypeScript

  • We have added TypeScript support for Picker placeholderStyle.
  • ViewStyles can now accept arrays.
  • TypeScript declaration file now contains the previously missingScrollableTab.
  • We have also fixed the Header components Title type.

--

--