forked from lucasferreira/react-native-webview-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ios.js
More file actions
34 lines (29 loc) · 718 Bytes
/
index.ios.js
File metadata and controls
34 lines (29 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* @providesModule WebViewAndroid
*/
'use strict';
var React = require('react');
var { StyleSheet } = require('react-native');
var createClass = require('create-react-class');
var UnimplementedView = createClass({
setNativeProps: function() {
// Do nothing.
},
render: function() {
// Workaround require cycle from requireNativeComponent
var { View } = require('react-native');
return (
<View style={[styles.unimplementedView, this.props.style]}>
{this.props.children}
</View>
);
},
});
var styles = StyleSheet.create({
unimplementedView: {
borderWidth: 1,
borderColor: 'red',
alignSelf: 'flex-start',
}
});
module.exports = UnimplementedView;