Skip to content

Commit

Permalink
Fix(): fixes eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sankhadeeproy007 committed Jul 20, 2020
1 parent 13787b5 commit 4d6c38d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 32 deletions.
60 changes: 30 additions & 30 deletions src/basic/Picker.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,36 +211,36 @@ class PickerNB extends Component {
<Container style={this.props.modalStyle}>
{this.renderHeader()}
<Content>
<FlatList
testID={this.props.testID}
data={this.state.dataSource}
keyExtractor={(item, index) => String(index)}
renderItem={({ item }) => (
<ListItem
selected={item.props.value === this.props.selectedValue}
button
style={this.props.itemStyle}
onPress={() => {
this._setModalVisible(false);
this.props.onValueChange(item.props.value, item.key);
this.setState({ current: item.props.label });
}}
>
<Left>
<Text style={this.props.itemTextStyle}>
{item.props.label}
</Text>
</Left>
<Right>
{item.props.value === this.props.selectedValue ? (
<Radio selected />
) : (
<Radio selected={false} />
)}
</Right>
</ListItem>
)}
/>
<FlatList
testID={this.props.testID}
data={this.state.dataSource}
keyExtractor={(item, index) => String(index)}
renderItem={({ item }) => (
<ListItem
selected={item.props.value === this.props.selectedValue}
button
style={this.props.itemStyle}
onPress={() => {
this._setModalVisible(false);
this.props.onValueChange(item.props.value, item.key);
this.setState({ current: item.props.label });
}}
>
<Left>
<Text style={this.props.itemTextStyle}>
{item.props.label}
</Text>
</Left>
<Right>
{item.props.value === this.props.selectedValue ? (
<Radio selected />
) : (
<Radio selected={false} />
)}
</Right>
</ListItem>
)}
/>
</Content>
</Container>
</Modal>
Expand Down
1 change: 0 additions & 1 deletion src/basic/ToastContainer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable class-methods-use-this */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Keyboard,
Platform,
Expand Down
1 change: 0 additions & 1 deletion src/theme/components/Badge.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @flow

import variable from './../variables/platform';
import { PLATFORM } from './../variables/commonColor';

export default (variables /* : * */ = variable) => {
const badgeTheme = {
Expand Down

0 comments on commit 4d6c38d

Please sign in to comment.