-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Back out "Fix Static View Config for RCTView"
Summary: Changelog: [internal] Reviewed By: arushikesarwani94 Differential Revision: D33042498 fbshipit-source-id: 42667f0fb17d502494139645a42dc54dea9904b7
- Loading branch information
1 parent
0c744de
commit 34efaab
Showing
5 changed files
with
145 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
Libraries/Components/View/ReactNativeViewViewConfigAndroid.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow strict-local | ||
* @format | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const ReactNativeViewViewConfigAndroid = { | ||
uiViewClassName: 'RCTView', | ||
bubblingEventTypes: { | ||
topSelect: { | ||
phasedRegistrationNames: { | ||
bubbled: 'onSelect', | ||
captured: 'onSelectCapture', | ||
}, | ||
}, | ||
topAssetDidLoad: { | ||
phasedRegistrationNames: { | ||
bubbled: 'onAssetDidLoad', | ||
captured: 'onAssetDidLoadCapture', | ||
}, | ||
}, | ||
}, | ||
directEventTypes: { | ||
topClick: { | ||
registrationName: 'onClick', | ||
}, | ||
topContentSizeChange: { | ||
registrationName: 'onContentSizeChange', | ||
}, | ||
topLoadingError: { | ||
registrationName: 'onLoadingError', | ||
}, | ||
topLoadingFinish: { | ||
registrationName: 'onLoadingFinish', | ||
}, | ||
topLoadingStart: { | ||
registrationName: 'onLoadingStart', | ||
}, | ||
topMessage: { | ||
registrationName: 'onMessage', | ||
}, | ||
topMomentumScrollBegin: { | ||
registrationName: 'onMomentumScrollBegin', | ||
}, | ||
topMomentumScrollEnd: { | ||
registrationName: 'onMomentumScrollEnd', | ||
}, | ||
topScroll: { | ||
registrationName: 'onScroll', | ||
}, | ||
topScrollBeginDrag: { | ||
registrationName: 'onScrollBeginDrag', | ||
}, | ||
topScrollEndDrag: { | ||
registrationName: 'onScrollEndDrag', | ||
}, | ||
topSelectionChange: { | ||
registrationName: 'onSelectionChange', | ||
}, | ||
onAssetDidLoad: { | ||
registrationName: 'onAssetDidLoad', | ||
}, | ||
}, | ||
validAttributes: { | ||
hasTVPreferredFocus: true, | ||
focusable: true, | ||
nativeBackgroundAndroid: true, | ||
nativeForegroundAndroid: true, | ||
nextFocusDown: true, | ||
nextFocusForward: true, | ||
nextFocusLeft: true, | ||
nextFocusRight: true, | ||
nextFocusUp: true, | ||
}, | ||
}; | ||
|
||
module.exports = ReactNativeViewViewConfigAndroid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.