create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
18 lines (15 loc) • 512 B
Flow
/**
* 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.
*
* @format
* @flow strict
*/
;
// $FlowExpectedError Flow does not know about Metro's require extensions.
const dynamicRequire = (require: {importAll: mixed => mixed});
module.exports = function(moduleID: mixed): Promise<mixed> {
return Promise.resolve().then(() => dynamicRequire.importAll(moduleID));
};