Skip to content

Commit

Permalink
fix: remove unused DataDetails and reference of AppStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
hanwencheng committed Aug 7, 2019
1 parent a68295b commit 0df5839
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 75 deletions.
68 changes: 0 additions & 68 deletions src/components/DataDetails.js

This file was deleted.

8 changes: 1 addition & 7 deletions src/components/QrView.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function QrView(props) {
let size = props.size || deviceWidth - 80;
let flexBasis = props.height || deviceWidth - 40;

const renderQr = () => (
return (
<View
style={[
styles.rectangleContainer,
Expand All @@ -50,12 +50,6 @@ export default function QrView(props) {
<Image source={{ uri: qr }} style={{ width: size, height: size }} />
</View>
);

if (this.props.screen) {
return <View style={AppStyles.view}>{renderQr()}</View>;
}

return renderQr();
}

const styles = StyleSheet.create({
Expand Down

0 comments on commit 0df5839

Please sign in to comment.