mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
ac62274e56
Summary: This diff moves ActivityIndicatorView to the generated view config Reviewed By: shergin Differential Revision: D15392561 fbshipit-source-id: 67a2fa0dbbb884af9e9c02b9062d3a610a023240
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
|
|
/**
|
|
* 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
|