Fix guides docs to es2015 classes and remove flowtype from Animation example

Summary:
1. Animation guide page is the only place where Flowtype is used, it would be better to remove it to prevent some confusion.

2. ES2015 classes in guidelines docs pages and fixed some typos

**Test plan (required)**

Should i write any tests for this?
Closes https://github.com/facebook/react-native/pull/8339

Differential Revision: D3474192

Pulled By: bestander

fbshipit-source-id: 5531d1e399eaed0952732ac2e0bd1effc72d00a8
This commit is contained in:
Artyom Trityak
2016-06-22 18:51:17 -07:00
committed by Facebook Github Bot 5
parent 8feb1dc3b7
commit 590f90fe2e
3 changed files with 29 additions and 22 deletions

View File

@@ -148,7 +148,8 @@ The event name `topChange` maps to the `onChange` callback prop in JavaScript (m
// MyCustomView.js
class MyCustomView extends React.Component {
constructor() {
constructor(props) {
super(props);
this._onChange = this._onChange.bind(this);
}
_onChange(event: Event) {