mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
7723c31329
Summary:
Adds support for `ArrayTypeAnnotation`, usage is as:
```
{
type: 'ArrayTypeAnnotation',
items: {
type: 'BooleanTypeAnnotation',
}
{
type: 'ArrayTypeAnnotation',
items: {
type: 'StringTypeAnnotation',
}
{
type: 'ArrayTypeAnnotation',
items: {
type: 'FloatTypeAnnotation',
}
{
type: 'ArrayTypeAnnotation',
items: {
type: 'Int32TypeAnnotation',
}
{
type: 'ArrayTypeAnnotation',
items: {
type: 'NativePrimitiveTypeAnnotation',
name: 'ImageSourcePrimitive'
}
{
type: 'ArrayTypeAnnotation',
items: {
type: 'NativePrimitiveTypeAnnotation',
name: 'ColorPrimitive'
}
{
type: 'ArrayTypeAnnotation',
items: {
type: 'NativePrimitiveTypeAnnotation',
name: 'PointPrimitive' // added in the next dfif
}
```
Reviewed By: TheSavior
Differential Revision: D14462086
fbshipit-source-id: f0c25f8fe969efc01e5838f3966d910fbbd9c86c
19 lines
951 B
C++
19 lines
951 B
C++
#import <react/components/ARRAY_PROPS/ComponentDescriptors.h>
|
|
#import <react/components/INTERFACE_ONLY/ComponentDescriptors.h>
|
|
#import <react/components/BOOLEAN_PROP/ComponentDescriptors.h>
|
|
#import <react/components/STRING_PROP/ComponentDescriptors.h>
|
|
#import <react/components/INTEGER_PROPS/ComponentDescriptors.h>
|
|
#import <react/components/FLOAT_PROPS/ComponentDescriptors.h>
|
|
#import <react/components/COLOR_PROP/ComponentDescriptors.h>
|
|
#import <react/components/IMAGE_PROP/ComponentDescriptors.h>
|
|
#import <react/components/MULTI_NATIVE_PROP/ComponentDescriptors.h>
|
|
#import <react/components/ENUM_PROP/ComponentDescriptors.h>
|
|
#import <react/components/EVENT_NESTED_OBJECT_PROPS/ComponentDescriptors.h>
|
|
#import <react/components/EVENT_PROPS/ComponentDescriptors.h>
|
|
#import <react/components/TWO_COMPONENTS_SAME_FILE/ComponentDescriptors.h>
|
|
#import <react/components/TWO_COMPONENTS_DIFFERENT_FILES/ComponentDescriptors.h>
|
|
|
|
int main(){
|
|
return 0;
|
|
}
|