mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
94b198cfd5
Summary:
This compiles SampleTurboModule into RNTester Android. It also adds the NativeModule playground to show case TurboModule system to RNTester examples, just like in iOS.
{F337854369}
Changelog: [Android][TurboModule] Added TurboModule example to RNTester when `USE_CODEGEN` is set
Reviewed By: hramos
Differential Revision: D24004711
fbshipit-source-id: b682dd51fa998ee2e60f8d6ffd8c39220d13a7fe
33 lines
808 B
C++
33 lines
808 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.
|
|
*/
|
|
|
|
// NOTE: This entire file should be codegen'ed.
|
|
|
|
#pragma once
|
|
|
|
#include <ReactCommon/JavaTurboModule.h>
|
|
#include <ReactCommon/TurboModule.h>
|
|
#include <fbjni/fbjni.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
/**
|
|
* C++ class for module 'SampleTurboModule'
|
|
*/
|
|
class JSI_EXPORT NativeSampleTurboModuleSpecJSI : public JavaTurboModule {
|
|
public:
|
|
NativeSampleTurboModuleSpecJSI(const JavaTurboModule::InitParams ¶ms);
|
|
};
|
|
|
|
std::shared_ptr<TurboModule> SampleTurboModuleSpec_ModuleProvider(
|
|
const std::string moduleName,
|
|
const JavaTurboModule::InitParams ¶ms);
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|