Skip to content

Commit

Permalink
fix linting and docs prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Hamilton committed May 11, 2020
1 parent ba71bc9 commit 81a9537
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/divider.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ distinction between sections of content.
```js
import { Divider } from 'react-native-elements';

<Divider style={{ backgroundColor: 'blue' }} />
<Divider style={{ backgroundColor: 'blue' }} />;
```

---
Expand Down
4 changes: 2 additions & 2 deletions docs/listitem.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ import LinearGradient from 'react-native-linear-gradient'; // Only if no expo
activeScale={0.95} //
linearGradientProps={{
colors: ['#FF9800', '#F44336'],
start: {x: 1, y: 0},
end: {x: 0.2, y: 0},
start: { x: 1, y: 0 },
end: { x: 0.2, y: 0 },
}}
ViewComponent={LinearGradient} // Only if no expo
leftAvatar={{ rounded: true, source: { uri: avatar_url } }}
Expand Down
7 changes: 1 addition & 6 deletions docs/rating.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,7 @@ const WATER_IMAGE = require('./water.png')
```js
const { rating } = this.props;

<Rating
imageSize={20}
readonly
startingValue={rating}
style={styles.rating}
/>
<Rating imageSize={20} readonly startingValue={rating} style={styles.rating} />;
```

![readonly demo jpg](/react-native-elements/img/rating_readonly.jpg)
Expand Down
4 changes: 2 additions & 2 deletions src/avatar/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
TouchableNativeFeedback,
TouchableWithoutFeedback,
} from 'react-native';
import isEqual from 'lodash.isequal'
import isEqual from 'lodash.isequal';

import { withTheme } from '../config';
import { renderNode, nodeType } from '../helpers';
Expand Down Expand Up @@ -249,6 +249,6 @@ AvatarComponent.defaultProps = {
ImageComponent: RNImage,
};

const Avatar = React.memo(AvatarComponent, isEqual)
const Avatar = React.memo(AvatarComponent, isEqual);
export { Avatar };
export default withTheme(Avatar, 'Avatar');
4 changes: 3 additions & 1 deletion src/header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class Header extends Component {
linearGradientProps,
ViewComponent = linearGradientProps && global.Expo
? global.Expo.LinearGradient
: backgroundImage ? ImageBackground : View,
: backgroundImage
? ImageBackground
: View,
theme,
...attributes
} = this.props;
Expand Down

0 comments on commit 81a9537

Please sign in to comment.