Skip to content

Commit 7082b59

Browse files
committed
fix: copy autogenerated files
1 parent 554183e commit 7082b59

12 files changed

+203
-88
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
/**
3+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4+
*
5+
* Do not edit this file as changes may cause incorrect behavior and will be lost
6+
* once the code is regenerated.
7+
*
8+
* @generated by codegen project: GenerateComponentDescriptorH.js
9+
*/
10+
11+
#pragma once
12+
13+
#include "ShadowNodes.h"
14+
15+
#include <react/debug/react_native_assert.h>
16+
#include <react/renderer/components/reactnativekeyboardcontroller//Props.h>
17+
#include <react/renderer/core/ConcreteComponentDescriptor.h>
18+
19+
namespace facebook {
20+
namespace react {
21+
22+
class KeyboardControllerViewComponentDescriptor final
23+
: public ConcreteComponentDescriptor<KeyboardControllerViewShadowNode> {
24+
public:
25+
using ConcreteComponentDescriptor::ConcreteComponentDescriptor;
26+
void adopt(ShadowNode &shadowNode) const override {
27+
react_native_assert(dynamic_cast<KeyboardControllerViewShadowNode *>(&shadowNode));
28+
ConcreteComponentDescriptor::adopt(shadowNode);
29+
}
30+
};
31+
32+
class OverKeyboardViewComponentDescriptor final
33+
: public ConcreteComponentDescriptor<OverKeyboardViewShadowNode> {
34+
public:
35+
using ConcreteComponentDescriptor::ConcreteComponentDescriptor;
36+
void adopt(ShadowNode &shadowNode) const override {
37+
react_native_assert(dynamic_cast<OverKeyboardViewShadowNode *>(&shadowNode));
38+
ConcreteComponentDescriptor::adopt(shadowNode);
39+
}
40+
};
41+
42+
class KeyboardGestureAreaComponentDescriptor final
43+
: public ConcreteComponentDescriptor<KeyboardGestureAreaShadowNode> {
44+
public:
45+
using ConcreteComponentDescriptor::ConcreteComponentDescriptor;
46+
void adopt(ShadowNode &shadowNode) const override {
47+
react_native_assert(dynamic_cast<KeyboardGestureAreaShadowNode *>(&shadowNode));
48+
ConcreteComponentDescriptor::adopt(shadowNode);
49+
}
50+
};
51+
52+
} // namespace react
53+
} // namespace facebook

common/cpp/react/renderer/components/reactnativekeyboardcontroller/OverKeyboardViewComponentDescriptor.h

-26
This file was deleted.

common/cpp/react/renderer/components/reactnativekeyboardcontroller/OverKeyboardViewShadowNode.cpp

-6
This file was deleted.

common/cpp/react/renderer/components/reactnativekeyboardcontroller/OverKeyboardViewShadowNode.h

-26
This file was deleted.

common/cpp/react/renderer/components/reactnativekeyboardcontroller/OverKeyboardViewState.h

-23
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
/**
3+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4+
*
5+
* Do not edit this file as changes may cause incorrect behavior and will be lost
6+
* once the code is regenerated.
7+
*
8+
* @generated by codegen project: GenerateShadowNodeCpp.js
9+
*/
10+
11+
#include "ShadowNodes.h"
12+
13+
namespace facebook::react {
14+
15+
extern const char KeyboardControllerViewComponentName[] = "KeyboardControllerView";
16+
extern const char KeyboardGestureAreaComponentName[] = "KeyboardGestureArea";
17+
extern const char OverKeyboardViewComponentName[] = "OverKeyboardView";
18+
19+
} // namespace facebook::react
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
/**
3+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4+
*
5+
* Do not edit this file as changes may cause incorrect behavior and will be lost
6+
* once the code is regenerated.
7+
*
8+
* @generated by codegen project: GenerateShadowNodeH.js
9+
*/
10+
11+
#pragma once
12+
13+
#include "States.h"
14+
15+
#include <react/renderer/components/reactnativekeyboardcontroller/EventEmitters.h>
16+
#include <react/renderer/components/reactnativekeyboardcontroller/Props.h>
17+
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
18+
#include <jsi/jsi.h>
19+
20+
namespace facebook::react {
21+
22+
JSI_EXPORT extern const char KeyboardControllerViewComponentName[];
23+
24+
/*
25+
* `ShadowNode` for <KeyboardControllerView> component.
26+
*/
27+
using KeyboardControllerViewShadowNode = ConcreteViewShadowNode<
28+
KeyboardControllerViewComponentName,
29+
KeyboardControllerViewProps,
30+
KeyboardControllerViewEventEmitter,
31+
KeyboardControllerViewState>;
32+
33+
JSI_EXPORT extern const char KeyboardGestureAreaComponentName[];
34+
35+
/*
36+
* `ShadowNode` for <KeyboardGestureArea> component.
37+
*/
38+
using KeyboardGestureAreaShadowNode = ConcreteViewShadowNode<
39+
KeyboardGestureAreaComponentName,
40+
KeyboardGestureAreaProps,
41+
KeyboardGestureAreaEventEmitter,
42+
KeyboardGestureAreaState>;
43+
44+
JSI_EXPORT extern const char OverKeyboardViewComponentName[];
45+
46+
/*
47+
* `ShadowNode` for <OverKeyboardView> component.
48+
*/
49+
using OverKeyboardViewShadowNode = ConcreteViewShadowNode<
50+
OverKeyboardViewComponentName,
51+
OverKeyboardViewProps,
52+
OverKeyboardViewEventEmitter,
53+
OverKeyboardViewState>;
54+
55+
} // namespace facebook::react
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
/**
3+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4+
*
5+
* Do not edit this file as changes may cause incorrect behavior and will be lost
6+
* once the code is regenerated.
7+
*
8+
* @generated by codegen project: GenerateStateCpp.js
9+
*/
10+
#include "States.h"
11+
12+
namespace facebook::react {
13+
14+
15+
16+
} // namespace facebook::react
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/**
2+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3+
*
4+
* Do not edit this file as changes may cause incorrect behavior and will be lost
5+
* once the code is regenerated.
6+
*
7+
* @generated by codegen project: GenerateStateH.js
8+
*/
9+
#pragma once
10+
11+
#ifdef ANDROID
12+
#include <folly/dynamic.h>
13+
#endif
14+
15+
namespace facebook::react {
16+
17+
class KeyboardControllerViewState {
18+
public:
19+
KeyboardControllerViewState() = default;
20+
21+
#ifdef ANDROID
22+
KeyboardControllerViewState(KeyboardControllerViewState const &previousState, folly::dynamic data){};
23+
folly::dynamic getDynamic() const {
24+
return {};
25+
};
26+
#endif
27+
};
28+
29+
class KeyboardGestureAreaState {
30+
public:
31+
KeyboardGestureAreaState() = default;
32+
33+
#ifdef ANDROID
34+
KeyboardGestureAreaState(KeyboardGestureAreaState const &previousState, folly::dynamic data){};
35+
folly::dynamic getDynamic() const {
36+
return {};
37+
};
38+
#endif
39+
};
40+
41+
class OverKeyboardViewState {
42+
public:
43+
OverKeyboardViewState() = default;
44+
45+
#ifdef ANDROID
46+
OverKeyboardViewState(OverKeyboardViewState const &previousState, folly::dynamic data){};
47+
folly::dynamic getDynamic() const {
48+
return {};
49+
};
50+
#endif
51+
};
52+
53+
} // namespace facebook::react

ios/views/OverKeyboardViewManager.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#import <react/renderer/components/reactnativekeyboardcontroller/EventEmitters.h>
2020
#import <react/renderer/components/reactnativekeyboardcontroller/Props.h>
2121
#import <react/renderer/components/reactnativekeyboardcontroller/RCTComponentViewHelpers.h>
22-
#import <reactnativekeyboardcontroller/OverKeyboardViewComponentDescriptor.h>
22+
#import <reactnativekeyboardcontroller/ComponentDescriptors.h>
2323

2424
#import "RCTFabricComponentsPlugins.h"
2525
#endif

src/specs/KeyboardControllerViewNativeComponent.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ export interface NativeProps extends ViewProps {
6666
onFocusedInputSelectionChanged?: DirectEventHandler<FocusedInputSelectionChangedEvent>;
6767
}
6868

69-
export default codegenNativeComponent<NativeProps>(
70-
"KeyboardControllerView",
71-
) as HostComponent<NativeProps>;
69+
export default codegenNativeComponent<NativeProps>("KeyboardControllerView", {
70+
interfaceOnly: true,
71+
}) as HostComponent<NativeProps>;

src/specs/KeyboardGestureAreaNativeComponent.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ export interface NativeProps extends ViewProps {
1515
textInputNativeID?: string;
1616
}
1717

18-
export default codegenNativeComponent<NativeProps>(
19-
"KeyboardGestureArea",
20-
) as HostComponent<NativeProps>;
18+
export default codegenNativeComponent<NativeProps>("KeyboardGestureArea", {
19+
interfaceOnly: true,
20+
}) as HostComponent<NativeProps>;

0 commit comments

Comments
 (0)