Last active
August 26, 2018 07:24
-
-
Save datvtwkm/a78bbdfb740a1a401157dc65faf0822d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import React, {Component} from 'react'; | |
import type {ComponentType} from 'react'; | |
import { | |
View, | |
Text | |
} from 'react-native'; | |
import hoc from './hoc'; | |
type State = { | |
value: string | |
} | |
class B extended Component<any, State> { | |
state = {value: 'Hello B'} | |
render(){ | |
return(<View><Text>{this.state.value}</Text></View>) | |
} | |
}; | |
export default hoc(B); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment