File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
lib/components/DynamicFonts Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change
1
+ import PermissionsAcquirer from './NoPermissionsAcquirer' ;
2
+ export default PermissionsAcquirer ;
Original file line number Diff line number Diff line change 1
- import { Platform } from 'react-native' ;
2
1
import FontLoader , { FontExtension , LoadFontInput } from './FontLoader' ;
3
2
import FontDownloader , { FontDownloaderProps } from './FontDownloader' ;
4
- import PermissionsAcquirerAndroid , { PermissionsAcquirerProps } from './PermissionsAcquirer.android' ;
5
- import PermissionsAcquirerIOS from './PermissionsAcquirer.ios' ;
3
+ import type { PermissionsAcquirerProps } from './PermissionsAcquirer.android' ;
4
+ // @ts -expect-error
5
+ import PermissionsAcquirer from './PermissionsAcquirer' ;
6
6
import NoPermissionsAcquirer from './NoPermissionsAcquirer' ;
7
- const PermissionsAcquirer = Platform . OS === 'android' ? PermissionsAcquirerAndroid : PermissionsAcquirerIOS ;
8
7
9
8
const DEFAULT_FONT_LOAD_ERROR_MESSAGE = 'Unable to load this font.' ;
10
9
You can’t perform that action at this time.
0 commit comments