2020-11-03 10:49:48 +08:00
|
|
|
/**
|
2022-10-18 23:19:24 +08:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2020-11-03 10:49:48 +08:00
|
|
|
*
|
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
2022-05-07 02:24:04 +08:00
|
|
|
import JSResourceReferenceImpl from 'JSResourceReferenceImpl';
|
2020-11-03 10:49:48 +08:00
|
|
|
|
|
|
|
|
const ReactFlightNativeRelayClientIntegration = {
|
2023-02-10 08:45:05 +08:00
|
|
|
resolveClientReference(metadata) {
|
|
|
|
|
return new JSResourceReferenceImpl(metadata);
|
2020-11-03 10:49:48 +08:00
|
|
|
},
|
2023-02-10 08:45:05 +08:00
|
|
|
preloadModule(clientReference) {},
|
|
|
|
|
requireModule(clientReference) {
|
|
|
|
|
return clientReference._moduleId;
|
2020-11-03 10:49:48 +08:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
module.exports = ReactFlightNativeRelayClientIntegration;
|