Skip to content

Commit

Permalink
use platform specific files instead of codes
Browse files Browse the repository at this point in the history
  • Loading branch information
HezekielT committed Feb 16, 2024
1 parent a12533e commit 108a9b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
9 changes: 1 addition & 8 deletions src/setup/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
import {I18nManager} from 'react-native';
import Onyx from 'react-native-onyx';
import getPlatform from '@libs/getPlatform';
import intlPolyfill from '@libs/IntlPolyfill';
import * as Metrics from '@libs/Metrics';
import * as Device from '@userActions/Device';
import exposeGlobalMemoryOnlyKeysMethods from '@userActions/MemoryOnlyKeys/exposeGlobalMemoryOnlyKeysMethods';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import platformSetup from './platformSetup';

function initializeLastVisitedPath(): string | undefined {
if (!(getPlatform() === CONST.PLATFORM.ANDROID || getPlatform() === CONST.PLATFORM.IOS)) {
return;
}
return '';
}
import initializeLastVisitedPath from './initializeLastVisitedPath';

export default function () {
/*
Expand Down
3 changes: 3 additions & 0 deletions src/setup/initializeLastVisitedPath/index.native.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function (): string {
return '';
}
1 change: 1 addition & 0 deletions src/setup/initializeLastVisitedPath/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function (): undefined {};

0 comments on commit 108a9b3

Please sign in to comment.