Skip to content

Commit

Permalink
Remove autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfNieuwenhuizen committed Jul 26, 2018
1 parent 9a7f4af commit 952909d
Showing 1 changed file with 19 additions and 29 deletions.
48 changes: 19 additions & 29 deletions Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export default class Video extends Component {
toTypeString(x) {
switch (typeof x) {
case "object":
return x instanceof Date ?
x.toISOString() :
JSON.stringify(x); // object, null
return x instanceof Date
? x.toISOString()
: JSON.stringify(x); // object, null
case "undefined":
return "";
default: // boolean, number, string
Expand Down Expand Up @@ -284,34 +284,24 @@ export default class Video extends Component {
resizeMode: this.props.posterResizeMode || 'contain'
};

return ( <
View style = {
nativeProps.style
} >
<
RCTVideo ref = {
this._assignRoot
} { ...nativeProps
}
/> <
Image style = {
posterStyle
}
source = {
{
uri: this.props.poster
}
}
/> <
/View>
return (
<View style={nativeProps.style}>
<RCTVideo
ref={this._assignRoot}
{...nativeProps}
/>
<Image
style={posterStyle}
source={{uri: this.props.poster}}
/>
</View>
);
}

return ( <
RCTVideo ref = {
this._assignRoot
} { ...nativeProps
}
return (
<RCTVideo
ref={this._assignRoot}
{...nativeProps}
/>
);
}
Expand Down Expand Up @@ -417,4 +407,4 @@ const RCTVideo = requireNativeComponent('RCTVideo', Video, {
seek: true,
fullscreen: true,
},
});
});

0 comments on commit 952909d

Please sign in to comment.