Skip to content

Commit

Permalink
fix(hippy-react-web): suppress childContextTypes warning (#431)
Browse files Browse the repository at this point in the history
Co-authored-by: Zoom Chan <[email protected]>
  • Loading branch information
Edward Chu and zoomchan-cxj authored Dec 2, 2020
1 parent cf8be7c commit 4a7ba66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/hippy-react-web/src/components/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ const styles = {
* @noInheritDoc
*/
export class Text extends React.Component {
// suppress waring:
// - childContextTypes must be defined in order to use getChildContext()
static childContextTypes = {
isInAParentText: () => {},
};

constructor(props) {
super(props);
this.state = {};
Expand Down

0 comments on commit 4a7ba66

Please sign in to comment.