Skip to content

Commit

Permalink
RN: Cleanup collapsable Experiment (iOS)
Browse files Browse the repository at this point in the history
Summary:
With the conclusion of D27944688 (facebook@925af8d), this backs out the experiment introduced via D27987619 (facebook@f598dd0).

Changelog:
[Internal]

Reviewed By: kacieb

Differential Revision: D28799741

fbshipit-source-id: 607ee85db26326e13dd8ddb52f5aebb732e9a354
  • Loading branch information
yungsters authored and facebook-github-bot committed Jun 2, 2021
1 parent e4a4c4d commit 249435c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
13 changes: 0 additions & 13 deletions Libraries/Components/View/ViewInjection.js

This file was deleted.

10 changes: 0 additions & 10 deletions Libraries/Components/View/ViewNativeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ import {type HostComponent} from '../../Renderer/shims/ReactNativeTypes';
import Platform from '../../Utilities/Platform';
import codegenNativeCommands from '../../Utilities/codegenNativeCommands';
import ReactNativeViewViewConfigAndroid from './ReactNativeViewViewConfigAndroid';
import ViewInjection from './ViewInjection';
import {type ViewProps as Props} from './ViewPropTypes';
import * as React from 'react';
import ReactNativeViewConfigRegistry from '../../Renderer/shims/ReactNativeViewConfigRegistry';

const ViewNativeComponent: HostComponent<Props> = NativeComponentRegistry.get<Props>(
'RCTView',
Expand All @@ -26,14 +24,6 @@ const ViewNativeComponent: HostComponent<Props> = NativeComponentRegistry.get<Pr
: {uiViewClassName: 'RCTView'},
);

if (Platform.OS === 'ios') {
if (ViewInjection.unstable_enableCollapsable) {
const viewConfig = ReactNativeViewConfigRegistry.get('RCTView');
// $FlowFixMe - Yes, knowingly writing to a read-only property.
viewConfig.validAttributes.collapsable = true;
}
}

interface NativeCommands {
+hotspotUpdate: (
viewRef: React.ElementRef<HostComponent<mixed>>,
Expand Down

0 comments on commit 249435c

Please sign in to comment.