mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
* [INJIMOB-3647] refactor: modify data type of isRevoked to EvaluationStatus Type representing any possible value of EvaluationStatus. - "TRUE" → Condition was evaluated and is positively true - "FALSE" → Condition was evaluated and is definitively false - "UNDETERMINED" → Condition could not be evaluated due to an error Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com> * [INJIMOB-3647] refactor: modify data type of isRevoked to EvaluationStatus Type representing any possible value of EvaluationStatus. - "TRUE" → Condition was evaluated and is positively true - "FALSE" → Condition was evaluated and is definitively false - "UNDETERMINED" → Condition could not be evaluated due to an error Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com> * [INJIMOB-3647] refactor: change statuslistVC type to record from string Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com> # Conflicts: # shared/vcjs/verifyCredential.ts * [INJIMOB-3647] refactor: update status revoke check to check for null status Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com> * [INJIMOB-3647] refactor: VCMetadat constructor isRevoked param Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com> * [INJIMOB-3647] refactor: rename EvaluationStatus to RevocationStatus Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com> * [INJIMOB-3647] refactor: modify revocation status logs Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com> --------- Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
import React from 'react';
|
|
import {
|
|
NavigationContainer,
|
|
useNavigationContainerRef,
|
|
} from '@react-navigation/native';
|
|
import {
|
|
NativeStackNavigationOptions,
|
|
createNativeStackNavigator,
|
|
} from '@react-navigation/native-stack';
|
|
import {authRoutes, baseRoutes} from '../routes';
|
|
import {useAppLayout} from './AppLayoutController';
|
|
import {StatusBar} from 'react-native';
|
|
import {GestureHandlerRootView} from 'react-native-gesture-handler';
|
|
|
|
const {Navigator, Screen} = createNativeStackNavigator();
|
|
export const AppLayout: React.FC = () => {
|
|
const navigationRef = useNavigationContainerRef();
|
|
|
|
const controller = useAppLayout();
|
|
const options: NativeStackNavigationOptions = {
|
|
title: '',
|
|
headerTitleAlign: 'center',
|
|
headerShadowVisible: false,
|
|
headerBackVisible: false,
|
|
};
|
|
|
|
return (
|
|
<GestureHandlerRootView>
|
|
<NavigationContainer ref={navigationRef}>
|
|
<StatusBar animated={true} barStyle="dark-content" />
|
|
<Navigator
|
|
initialRouteName={baseRoutes[0].name}
|
|
screenOptions={options}>
|
|
{baseRoutes.map(route => (
|
|
<Screen key={route.name} {...route} />
|
|
))}
|
|
{controller.isAuthorized &&
|
|
authRoutes.map(route => <Screen key={route.name} {...route} />)}
|
|
</Navigator>
|
|
</NavigationContainer>
|
|
</GestureHandlerRootView>
|
|
);
|
|
};
|