Files
react-native/Libraries
MateusAndradeandLorenzo Sciandra 6c8535656f Improving Modal visible prop check to handle undefined and null (#22072)
Summary:
Changing the the this.props.visible if to be ` if (!!this.props.visible === false)` . So passing undefined, or other values wont set the modal to be visible. Granting that anything that is not true, will set the modal to null on the render.

I make this this PR, because on the company that im working, we used a lot of RN. At the moment, we arent using anything like flow or TS. But to grant that the modals will only show if they are set visible to true i have changed the if made.

_Pull requests that expand test coverage are more likely to get reviewed. Add a test case whenever possible!_
Pull Request resolved: https://github.com/facebook/react-native/pull/22072

Differential Revision: D12918086

Pulled By: TheSavior

fbshipit-source-id: 8f9c63ac6fd56d83949bb8428ad7c5b7bf805c49
2018-11-26 16:34:31 +00:00
..
2018-05-10 19:10:38 -07:00
2018-07-19 19:02:13 -07:00
2018-06-06 05:32:06 -07:00
2018-11-13 15:07:04 +00:00
2018-10-19 15:45:17 +01:00
2018-11-07 10:06:45 +00:00
2018-05-10 19:10:38 -07:00
2018-05-10 19:10:38 -07:00
2018-07-31 21:01:41 -07:00
2018-09-11 16:11:16 -07:00
2018-08-13 21:38:57 +01:00
2018-03-08 12:10:14 -08:00
2018-05-10 19:10:38 -07:00