Quellcode durchsuchen

Update index.ios.js

播放视频
于广吉 vor 5 Jahren
Ursprung
Commit
8107e171ad
Es ist kein Benutzerkonto mit dieser Commiter-Email verbunden
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4
    2
      autoHeightWebView/index.ios.js

+ 4
- 2
autoHeightWebView/index.ios.js Datei anzeigen

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