Skip to content

0.6.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@xinthink xinthink released this 18 Feb 08:32
· 5 commits to master since this release

React Native Version

Compatible react-native version ⬆️ v0.61.

Breaking Changes

The package is ported to TypeScript and refactored a lot, which makes several breaking changes:

Naming Convention

The alias pattern MK<Component> is obsoleted. Use <Component> directly.

Buttons

Builders & factory methods are replaced with prebuilt button variances, e.g., ColoredRaisedButton and Fab.
Predefined props and styles are also available, such as raisedButton() or coloredButtonText(), upon which you can define reusable button components or themes.
Please see the buttons example for details.

Text Fields

Likewise, builders for the TextField component is also removed, you can customize a TextField using props directly. For example:

Textfield
  password
  placeholder="Password"
  textInputStyle={}
  highlightColor={MKColor.DeepPurple}
/>

Please see the text-fields example for details.

Documentation

The package documentation is re-written completely, complying with the TSDoc standard. The annotated source will not be updated anymore.
The new API docs can be accessed here.