Skip to content

Commit

Permalink
Clean up code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
iou90 committed Feb 18, 2020
1 parent bad183b commit 09f80e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 2 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ module.exports = {
root: true,
extends: '@react-native-community',
rules: {
'prettier/prettier': [
{
singleQuote: true
}
],
'comma-dangle': 'off'
'comma-dangle': 'off',
'no-unused-vars': 'error'
}
};
6 changes: 1 addition & 5 deletions autoHeightWebView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ import { reduceData, getWidth, isSizeChanged, shouldUpdate } from './utils';

const AutoHeightWebView = React.memo(
forwardRef((props, ref) => {
const { style, onMessage, onSizeUpdated, scrollEnabledWithZoomedin, scrollEnabled, source } = props;

if (!source) {
return null;
}
const { style, onMessage, onSizeUpdated, scrollEnabledWithZoomedin, scrollEnabled } = props;

let webView = useRef();
useImperativeHandle(ref, () => ({
Expand Down

0 comments on commit 09f80e6

Please sign in to comment.