瀏覽代碼

Adding style props to main container.

Matheus Stefanello Luz 6 年之前
父節點
當前提交
4deb26c383
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/index.js

+ 1
- 1
src/index.js 查看文件

@@ -259,7 +259,7 @@ export default class ViewShot extends Component {
259 259
   render() {
260 260
     const { children } = this.props;
261 261
     return (
262
-      <View ref={this.onRef} collapsable={false} onLayout={this.onLayout}>
262
+      <View ref={this.onRef} collapsable={false} onLayout={this.onLayout} style={this.props.style}>
263 263
         {children}
264 264
       </View>
265 265
     );