eslint-plugin-react-native icon indicating copy to clipboard operation
eslint-plugin-react-native copied to clipboard

Show warning when using an undefined style

Open Intellicode opened this issue 8 years ago • 0 comments

const styles = StyleSheet.create({});

const Hello = React.createClass({
  render: function() {
    return <Text style={styles.name}>Hello {this.props.name}</Text>;
  }
});

Should throw a warning regarding styles.name

Intellicode avatar Mar 24 '16 20:03 Intellicode