mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
417adf526f
Summary: This allows an unsupported component to be rendered as a "unimplemented view" for better visualization of which component is missing. It is off by default, but configurable in the component factory. For now, the layout simply follows regular <View />, which means the width/height etc is based on the react component styling. The side effect is that components with 0 height/width won't show up at all. Reviewed By: mdvacca Differential Revision: D14869656 fbshipit-source-id: f31e012fb7dc1c64fcc431ea5aa45079a23a618e
44 lines
999 B
JavaScript
44 lines
999 B
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.
|
|
*
|
|
* @format
|
|
* @flow
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import type {SchemaType} from '../../../packages/react-native-codegen/src/CodegenSchema.js';
|
|
|
|
const UnimplementedNativeViewSchema: SchemaType = {
|
|
modules: {
|
|
UnimplementedNativeViewSchema: {
|
|
components: {
|
|
UnimplementedNativeView: {
|
|
extendsProps: [
|
|
{
|
|
type: 'ReactNativeBuiltInType',
|
|
knownTypeName: 'ReactNativeCoreViewProps',
|
|
},
|
|
],
|
|
events: [],
|
|
props: [
|
|
{
|
|
name: 'name',
|
|
optional: true,
|
|
typeAnnotation: {
|
|
type: 'StringTypeAnnotation',
|
|
default: '',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
module.exports = UnimplementedNativeViewSchema;
|