Fix react-native-web support for #3526 (#3546)

* MaskedViewIOS use broke react-native-web support, this fixes it.

* Fallback more gracefully.

* Actually return the value ...
This commit is contained in:
Ron Arts
2018-02-19 13:48:12 +01:00
committed by Satyajit Sahoo
parent 14ee56a20d
commit 3ca47ec778
3 changed files with 9 additions and 5 deletions

View File

@@ -1,3 +1,6 @@
import { BackHandler } from 'react-native';
import React from 'react';
import { BackHandler, View } from 'react-native';
export { BackHandler };
const MaskedViewIOS = () => <View>{this.props.children}</View>;
export { BackHandler, MaskedViewIOS };