mirror of
https://github.com/DocNR/POWR.git
synced 2025-04-23 01:01:27 +00:00
14 lines
470 B
TypeScript
14 lines
470 B
TypeScript
// components/pager/index.ts
|
|
import { Platform } from 'react-native';
|
|
import type { PagerProps, PagerRef } from './types';
|
|
|
|
let PagerComponent: React.ForwardRefExoticComponent<PagerProps & React.RefAttributes<PagerRef>>;
|
|
|
|
if (Platform.OS === 'web') {
|
|
PagerComponent = require('./pager.web').default;
|
|
} else {
|
|
PagerComponent = require('./pager.native').default;
|
|
}
|
|
|
|
export type { PagerProps, PagerRef, PageSelectedEvent } from './types';
|
|
export default PagerComponent; |