|
@@ -43,6 +43,7 @@ export default class AutoHeightWebView extends PureComponent {
|
43
|
43
|
onLoadStart: PropTypes.func,
|
44
|
44
|
onLoadEnd: PropTypes.func,
|
45
|
45
|
onShouldStartLoadWithRequest: PropTypes.func,
|
|
46
|
+ allowsInlineMediaPlayback: PropTypes.bool,
|
46
|
47
|
// 'web/' by default
|
47
|
48
|
baseUrl: PropTypes.string,
|
48
|
49
|
// add baseUrl/files... to project root
|
|
@@ -148,7 +149,8 @@ export default class AutoHeightWebView extends PureComponent {
|
148
|
149
|
enableAnimation,
|
149
|
150
|
heightOffset,
|
150
|
151
|
style,
|
151
|
|
- scrollEnabled
|
|
152
|
+ scrollEnabled,
|
|
153
|
+ allowsInlineMediaPlayback
|
152
|
154
|
} = this.props;
|
153
|
155
|
const { source, script } = this.getUpdatedState(this.props, getBaseScript, getIframeBaseScript);
|
154
|
156
|
return (
|
|
@@ -178,7 +180,7 @@ export default class AutoHeightWebView extends PureComponent {
|
178
|
180
|
injectedJavaScript={script}
|
179
|
181
|
source={source}
|
180
|
182
|
onNavigationStateChange={this.handleNavigationStateChange}
|
181
|
|
- allowsInlineMediaPlayback={true}
|
|
183
|
+ allowsInlineMediaPlayback={allowsInlineMediaPlayback}
|
182
|
184
|
/>
|
183
|
185
|
</Animated.View>
|
184
|
186
|
);
|