mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Use generated view config for ActivityIndicatorView
Summary: This diff moves ActivityIndicatorView to the generated view config Reviewed By: shergin Differential Revision: D15392561 fbshipit-source-id: 67a2fa0dbbb884af9e9c02b9062d3a610a023240
This commit is contained in:
1 parent
e52bc2aa73
commit
ac62274e56
8 files changed
+82
-42
No files matched your search
@@ -0,0 +1,45 @@
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const ReactNativeViewConfigRegistry = require('ReactNativeViewConfigRegistry');
|
||||
const ReactNativeViewViewConfig = require('ReactNativeViewViewConfig');
|
||||
const verifyComponentAttributeEquivalence = require('verifyComponentAttributeEquivalence');
|
||||
|
||||
const ActivityIndicatorViewViewConfig = {
|
||||
uiViewClassName: 'RCTActivityIndicatorView',
|
||||
Commands: {},
|
||||
|
||||
bubblingEventTypes: {
|
||||
...ReactNativeViewViewConfig.bubblingEventTypes,
|
||||
},
|
||||
|
||||
directEventTypes: {
|
||||
...ReactNativeViewViewConfig.directEventTypes,
|
||||
},
|
||||
|
||||
validAttributes: {
|
||||
...ReactNativeViewViewConfig.validAttributes,
|
||||
hidesWhenStopped: true,
|
||||
animating: true,
|
||||
color: { process: require('processColor') },
|
||||
size: true,
|
||||
},
|
||||
};
|
||||
|
||||
verifyComponentAttributeEquivalence('RCTActivityIndicatorView', ActivityIndicatorViewViewConfig);
|
||||
|
||||
ReactNativeViewConfigRegistry.register(
|
||||
'RCTActivityIndicatorView',
|
||||
() => ActivityIndicatorViewViewConfig,
|
||||
);
|
||||
|
||||
module.exports = 'RCTActivityIndicatorView'; // RCT prefix present for paper support
|
||||
Reference in new issue
Block a user