Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props) {
super(props);
this.state = {
dataSource: new ListView.DataSource({ rowHasChanged: (row1, row2) => row1 !== row2 }),
loaded: false,
text: null,
helpText: 'Type a company name or stock symbol.',
};
}
constructor(props) {
super(props);
this.state = {
refreshing: false,
dataSource: new ListView.DataSource({ rowHasChanged: (row1, row2) => row1 !== row2 }),
detailsType: 'DETAILS',
};
}
constructor(props) {
super(props);
this.row = this.row.bind(this)
const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1.id !== r2.id});
this.state = {
dataSource: ds.cloneWithRows(props.emails),
};
}
constructor(props) {
super(props)
const ds = new ListView.DataSource({
rowHasChanged: (r1, r2) => r1 !== r2
})
this.state = {
dataSource: ds.cloneWithRows(props.statuses),
}
}
constructor(props) {
super(props);
this.state = {
dataSource: new ListView.DataSource({ rowHasChanged: (row1, row2) => row1 !== row2 }),
key: Math.random(),
};
}
componentWillReceiveProps(props) {
const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1.id !== r2.id});
this.setState({
dataSource: ds.cloneWithRows(props.emails)
})
}
constructor(props) {
super(props);
this.state = {
dataSource: new ListView.DataSource({ rowHasChanged: (row1, row2) => row1 !== row2 }),
};
}