Skip to content

Instantly share code, notes, and snippets.

@Yasir5247
Yasir5247 / initialize.ts
Last active December 27, 2025 10:38
initialize function
export const initialize = async (
options?: ModuleServiceInitializeOptions | ...,
pluginLinksDefinitions?: ModuleJoinerConfig[],
injectedDependencies?: InitializeModuleInjectableDependencies
): Promise<{ [link: string]: ILinkModule }> => {
// Accumulator object that will store all initialized link modules
// Keys are service names (e.g., 'store_product'), values are ILinkModule instances
const allLinks = {}
/*
allLinks: {
@Yasir5247
Yasir5247 / defineLink.ts
Last active December 27, 2025 16:08
defineLink explanation
@Yasir5247
Yasir5247 / .ts
Last active November 13, 2025 22:32
async function loadInternalModule(loadOptions) {
try {
// FUNCTION BREADCRUMB: loadInternalModule()
//
// INPUT:
// loadOptions = {
// container: AiminaabeeContainer, // Parent DI container (Awilix container instance)
// resolution: ModuleResolution, // Module config object with path, options, dependencies
@Yasir5247
Yasir5247 / vesper-dark.json
Created February 10, 2024 16:32 — forked from bdsqqq/vesper-dark.json
Vesper theme for zed.dev
{
"$schema": "https://zed.dev/schema/themes/v0.1.0.json",
"name": "Vesper",
"author": "Rauno Freiberg",
"themes": [
{
"name": "Vesper",
"appearance": "dark",
"style": {
"border": "#101010",
import {captureException} from '@sentry/react-native';
import {AuthorizeResult, refresh, RefreshResult} from 'react-native-app-auth';
import {stores} from '../../stores';
import {STORAGE_KEYS} from '../../utils/constants';
import {EFAAS_CONFIG} from '../../utils/efaasConfig';
import {saveSecureValue, getSecureValue} from '../../utils/getToken';
export const TOKEN_TO_STORAGE_KEYS = {
access: STORAGE_KEYS.ACCESS_TOKEN,
refresh: STORAGE_KEYS.REFRESH_TOKEN,
{
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.validate": ["javascript", "javascriptreact"],
"eslint.format.enable": true,
//breadcrumbs
"breadcrumbs.enabled": false,
//zoom
"window.zoomLevel": 1,
import {AuthorizeResult, refresh, RefreshResult} from 'react-native-app-auth';
import {EFAAS_CONFIG} from './efaasConfig';
import {getSecureValue, saveSecureValue} from './getToken';
import {captureException} from './sentry';
import {stores} from '../stores';
import {STORAGE_KEYS} from './constants';
export const TOKEN_TO_STORAGE_KEYS = {
access: STORAGE_KEYS.ACCESS_TOKEN,
refresh: STORAGE_KEYS.REFRESH_TOKEN,
import React, {useEffect, useRef, useState} from 'react';
import {Alert, StyleSheet} from 'react-native';
import {View, Text} from 'react-native-ui-lib';
import {NavigationFunctionComponent} from 'react-native-navigation';
import {observer} from 'mobx-react';
//lottie
import LottieView from 'lottie-react-native';
import {lotties} from '../../assets/lotties';
import React, { useEffect } from 'react';
import {StyleSheet, ImageBackground, Button} from 'react-native';
import {View, Image} from 'react-native-ui-lib';
import {NavigationFunctionComponent} from 'react-native-navigation';
import { observer } from 'mobx-react';
import { PinCodeT } from '../../components/PinComponent';
//services
import {useServices} from '../../services';
const {
withAppBuildGradle,
withProjectBuildGradle,
withMainApplication,
withPlugins,
} = require('@expo/config-plugins');
const withMultidexMainApplication = (config) => {
return withMainApplication(config, (config) => {