Files
react-native/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeViewConfig.js
T
Rick Hanlon ac62274e56 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
2019-05-24 09:21:27 -07:00

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