Sync browser navigation with app
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import {Linking} from 'react-native'
|
||||
import {createBrowserHistory, createMemoryHistory} from 'history'
|
||||
import {isNative, isWeb} from './detection'
|
||||
|
||||
export async function getInitialURL(): Promise<string | undefined> {
|
||||
@@ -24,11 +23,3 @@ export function clearHash() {
|
||||
window.location.hash = ''
|
||||
}
|
||||
}
|
||||
|
||||
export function getHistory() {
|
||||
if (isWeb) {
|
||||
return createBrowserHistory()
|
||||
} else {
|
||||
return createMemoryHistory()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user