Files
react-native/ReactCommon/fabric/components/picker/androidpicker/AndroidDropdownPickerShadowNode.h
T
Oleksandr Melnykov 9ff090e507 Integrate Picker into Fabric on Android
Summary:
In this diff we integrate the Picker component on Android in Fabric. Since both AndroidDropdownPickerNativeComponent and AndroidDialogPickerNativeComponent use `style?: ?TextStyleProp`, which is not supported by the JS codegen, I had to handwrite the C++ files and check them in.

The component is not fully functional yet because `setNativeProps` is not supported in Fabric. I will fix this in the next diff.

Changelog:
[Android] [Added] - Integrate Picker into Fabric on Android

Reviewed By: mdvacca

Differential Revision: D17954435

fbshipit-source-id: 6b7b029ab0c84c27a48c7dddd66878c9dea324bf
2019-11-11 09:11:42 -08:00

30 lines
731 B
C++

/*
* 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.
*/
#pragma once
#include "AndroidDropdownPickerEventEmitter.h"
#include "AndroidDropdownPickerProps.h"
#include <react/components/view/ConcreteViewShadowNode.h>
namespace facebook {
namespace react {
extern const char AndroidDropdownPickerComponentName[];
/*
* `ShadowNode` for <AndroidDropdownPicker> component.
*/
using AndroidDropdownPickerShadowNode = ConcreteViewShadowNode<
AndroidDropdownPickerComponentName,
AndroidDropdownPickerProps,
AndroidDropdownPickerEventEmitter>;
} // namespace react
} // namespace facebook