After making some creative adjustments, this is what I came up with:
const TopBar = () => (
<Button
onPress={this.onPress} // No errors shown
/>
)
Although all my other rules in tslint.json
are functioning properly.
Is there a way to make typescript
/tslint
raise warnings in this scenario?
I am working with "typescript": "^3.3.3333"
on a React Native
project