UNPKG

react-native-pager-view

Version:
28 lines (24 loc) 1.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.Commands = void 0; var _codegenNativeCommands = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands")); var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /* Note: The types below are duplicated between this file and `src/specs/PagerViewNativeComponent.ts`. This is on purpose. Firstly, we're declaring two native modules with two different iOS implementation flavors, but the same API. Secondly, as these files serve as a reference point for React Native's new architecture Codegen process (which takes care of the automatic generation of the native modules) we cannot extract the types into a separate file, or declare both native modules in one file, as Codegen supports neither of these workarounds at the time of writing. In order to make things as intuitive as possible, the duplicated types in this file are *not* exported, as they are meant for use in this file only, by Codegen-related functions. */ const Commands = (0, _codegenNativeCommands.default)({ supportedCommands: ['setPage', 'setPageWithoutAnimation', 'setScrollEnabledImperatively'] }); exports.Commands = Commands; var _default = (0, _codegenNativeComponent.default)('LEGACY_RNCViewPager'); exports.default = _default; //# sourceMappingURL=LEGACY_PagerViewNativeComponent.js.map