mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-30 23:22:41 +08:00
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:
committed by
Facebook Github Bot 5
parent
8feb1dc3b7
commit
590f90fe2e
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user