Julian Hundeloh 63349a727d fix: ref set to null on updates (#410)
### Motivation

The ref function is called twice on updates (see https://reactjs.org/docs/refs-and-the-dom.html#caveats-with-callback-refs). This behaviour causes the variable `this._manager` sometimes to be null during rendering and in that case actions are pushed to the queue again. Since the queue is only processed once (during componentDidMount), somes changes will never be visible. The simple solution is to bind the ref-function as mentioned in the link above.

### Test plan

Dynamically change `visible` parameter of Modal. The Modal won't be visible on the second time.
2018-06-06 13:10:33 +02:00
2018-02-26 12:40:25 +01:00
2018-03-02 22:18:45 +01:00
2018-03-02 22:18:45 +01:00
2016-10-23 23:36:39 +05:30
2018-05-31 07:44:55 +02:00
2018-02-23 12:27:36 +01:00
2018-06-05 14:23:20 +02:00
2018-05-24 18:59:55 +02:00
2018-05-31 07:44:55 +02:00

react-native-paper

Material design for React Native.


Build Status Version MIT License PRs Welcome Chat

Features

Currently supported React Native version: >= 0.50.3

Try it out

Run the example app with Expo to see it in action.

The source code for the examples are under the /example folder.

Getting Started

Refer to the getting started guide for instructions.

Documentation

Check the components and their usage in our documentation.

Contributing

Read the contribution guidelines before contributing.

Description
No description provided
Readme 62 MiB
Languages
TypeScript 90.7%
JavaScript 8.5%
Shell 0.4%
CSS 0.3%