Skip to content

Instantly share code, notes, and snippets.

@datvtwkm
Last active August 26, 2018 07:24
Show Gist options
  • Save datvtwkm/a78bbdfb740a1a401157dc65faf0822d to your computer and use it in GitHub Desktop.
Save datvtwkm/a78bbdfb740a1a401157dc65faf0822d to your computer and use it in GitHub Desktop.
// @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