26 lines
1,009 B
TypeScript
26 lines
1,009 B
TypeScript
// Module ID: 10699
|
|
// Function ID: 10700
|
|
// Name: showThreadBrowserModal
|
|
// Dependencies: [10653, 7409, 4737, 2]
|
|
// Exports: default
|
|
|
|
// Module 10699 (showThreadBrowserModal)
|
|
import RootNavigationRef from "RootNavigationRef" /* 4737 */;
|
|
import ThreadUtils from "ThreadUtils" /* 7409 */;
|
|
import ChannelDetailsConstants from "ChannelDetailsConstants" /* 10653 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const constants = ChannelDetailsConstants.ChannelDetailsNavigatorScreens;
|
|
let result = size.fileFinishedImporting("modules/threads/native/showThreadBrowserModal.tsx");
|
|
|
|
export default function showThreadBrowserModal(id) {
|
|
const obj = ThreadUtils;
|
|
const result = obj.trackThreadBrowserOpened();
|
|
const obj2 = RootNavigationRef;
|
|
const rootNavigationRef = obj2.getRootNavigationRef();
|
|
const tmp2 = null != rootNavigationRef && rootNavigationRef.isReady();
|
|
if (tmp2) {
|
|
const obj3 = { channelId: id.id, initialRouteName: constants.THREADS };
|
|
rootNavigationRef.navigate("sidebar", obj3);
|
|
}
|
|
};
|