diff --git a/Libraries/ReactNative/AppContainer.js b/Libraries/ReactNative/AppContainer.js index fb9263f6235b89..7740178689de09 100644 --- a/Libraries/ReactNative/AppContainer.js +++ b/Libraries/ReactNative/AppContainer.js @@ -13,11 +13,8 @@ import RCTDeviceEventEmitter from '../EventEmitter/RCTDeviceEventEmitter'; import StyleSheet from '../StyleSheet/StyleSheet'; import {type EventSubscription} from '../vendor/emitter/EventEmitter'; import {RootTagContext, createRootTag} from './RootTag'; -import PropTypes from 'prop-types'; import * as React from 'react'; -type Context = {rootTag: number, ...}; - type Props = $ReadOnly<{| children?: React.Node, fabric?: boolean, @@ -45,18 +42,6 @@ class AppContainer extends React.Component { static getDerivedStateFromError: any = undefined; - static childContextTypes: - | any - | {|rootTag: React$PropType$Primitive|} = { - rootTag: PropTypes.number, - }; - - getChildContext(): Context { - return { - rootTag: this.props.rootTag, - }; - } - componentDidMount(): void { if (__DEV__) { if (!global.__RCTProfileIsProfiling) {