Merge branch 'release/1.7.0' into rome/1.7.0
This commit is contained in:
@@ -24,13 +24,16 @@ import {
|
||||
selectBodyshop,
|
||||
selectCurrentUser,
|
||||
} from "../../redux/user/user.selectors";
|
||||
|
||||
import env from "../../env";
|
||||
import ScreenJobDetail from "../screen-job-detail/screen-job-detail.component";
|
||||
import ScreenJobList from "../screen-job-list/screen-job-list.component";
|
||||
import ScreenMediaBrowser from "../screen-media-browser/screen-media-browser.component";
|
||||
import ScreenSettingsComponent from "../screen-settings/screen-settings.component";
|
||||
import ScreenSignIn from "../screen-sign-in/screen-sign-in.component";
|
||||
import ScreenSplash from "../screen-splash/screen-splash.component";
|
||||
import { SplitFactory } from "@splitsoftware/splitio-react-native";
|
||||
import * as Updates from "expo-updates";
|
||||
import LogRocket from "@logrocket/react-native";
|
||||
|
||||
import SignOutButton from "../Buttons/employee-sign-out-button.component";
|
||||
import EmployeeSignIn from "../screen-employee-sign-in/screen-employee-sign-in.component";
|
||||
@@ -240,6 +243,8 @@ const BottomTabsNavigator = () => (
|
||||
</BottomTabs.Navigator>
|
||||
);
|
||||
|
||||
export var splitClient;
|
||||
|
||||
export function ScreenMainComponent({
|
||||
checkUserSession,
|
||||
currentUser,
|
||||
@@ -249,6 +254,23 @@ export function ScreenMainComponent({
|
||||
checkUserSession();
|
||||
}, [checkUserSession]);
|
||||
|
||||
useEffect(() => {
|
||||
LogRocket.init("idt6oy/imex-mobile", {
|
||||
updateId: Updates.isEmbeddedLaunch ? null : Updates.updateId,
|
||||
expoChannel: Updates.channel,
|
||||
});
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (bodyshop && bodyshop.imexshopid) {
|
||||
splitClient = SplitFactory({
|
||||
//debug: true,
|
||||
core: { authorizationKey: env.SPLIT_API, key: bodyshop.imexshopid },
|
||||
}).client();
|
||||
splitClient.setAttribute("imexshopid", bodyshop.imexshopid);
|
||||
}
|
||||
}, [bodyshop]);
|
||||
|
||||
return (
|
||||
<NavigationContainer>
|
||||
{currentUser.authorized === null ? (
|
||||
|
||||
Reference in New Issue
Block a user