diff --git a/packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js b/packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js index 98b754ce801..d24ad15e69e 100644 --- a/packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +++ b/packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js @@ -19,7 +19,6 @@ import type {DirectEventHandler} from '../../Types/CodegenTypes'; import StyleSheet from '../../StyleSheet/StyleSheet'; import dismissKeyboard from '../../Utilities/dismissKeyboard'; -import Platform from '../../Utilities/Platform'; import StatusBar from '../StatusBar/StatusBar'; import View from '../View/View'; import AndroidDrawerLayoutNativeComponent, { @@ -180,10 +179,7 @@ class DrawerLayoutAndroid extends React.Component { onDrawerClose, ...props } = this.props; - const drawStatusBar = - Platform.OS === 'android' && - Platform.Version >= 21 && - this.props.statusBarBackgroundColor != null; + const drawStatusBar = this.props.statusBarBackgroundColor != null; const drawerViewWrapper = ( { if ( Platform.OS === 'android' && - Platform.Version >= 21 && (color != null || borderless != null || radius != null) ) { const processedColor = processColor(color); @@ -71,7 +70,7 @@ export default function useAndroidRippleForView( return { viewProps: - foreground === true && Platform.Version >= 23 + foreground === true ? {nativeForegroundAndroid: nativeRippleValue} : {nativeBackgroundAndroid: nativeRippleValue}, onPressIn(event: PressEvent): void { diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js b/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js index 5c5aa5a31da..17dfed376cb 100644 --- a/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js +++ b/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js @@ -156,7 +156,7 @@ class TouchableNativeFeedback extends React.Component { * Whether `useForeground` is supported. */ static canUseNativeForeground: () => boolean = () => - Platform.OS === 'android' && Platform.Version >= 23; + Platform.OS === 'android'; state: State = { pressability: new Pressability(this._createPressabilityConfig()),