<commit_before># react-native-animate-styles
Easily animate react-native components between two styles
<commit_msg>Initial README<commit_after># react-native-animate-styles

Easily animate react-native components between two styles

# Install

`npm install --save react-native-animate-styles`

# Usage

```
import AnimateStyles from 'react-native-animate-styles'

class MyComponent extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      active: true
    }
  }

  componentDidMount() {
    this.interval = setInterval(() => {
      this.setState({
        active: !this.state.active
      })
    }, 3000)
  }

  componentWillUnmount() {
    clearInterval(this.interval);
  }

  render() {
    return (
      <AnimateStyles.View
        style={styles.container}
        animatedStyle={styles.containerActive}
        active={this.state.active}
      />
    )
  }
}

const styles = StyleSheet.create({
  container: {
    backgroundColor: 'red',
    width: 50,
    height: 50,
    marginLeft: 10
  },

  containerActive: {
    width: 100,
    height: 100,
    backgroundColor: 'green'
  }
})
```

{'fraction_non_alphanumeric': 0.11946902654867257, 'fraction_numerical': 0.01415929203539823, 'mean_word_length': 2.8732876712328768, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6448716', 'n_tokens_mistral': 373, 'n_tokens_neox': 345, 'n_words': 72}