This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {useState, useEffect, useRef, useCallback} from 'react'; | |
| import {View,Text,BackHandler, Share as RNshare, Platform} from 'react-native'; | |
| import {WebView} from 'react-native-webview'; | |
| import {useRoute, useNavigation} from '@react-navigation/native'; | |
| import {useFocusEffect, useIsFocused} from '@react-navigation/native'; | |
| import Share from 'react-native-share'; | |
| import ReactNativeBlobUtil from 'react-native-blob-util'; | |
| import styled from 'styled-components/native'; | |
| import axios from 'axios'; | |
| import HeaderComponentWithBackButton from '../components/HeaderComponentWithBackButton'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {useRef} from 'react'; | |
| import {PanResponder} from 'react-native'; | |
| import {GestureHandlerRootView} from 'react-native-gesture-handler'; | |
| export default GestureHandlerContainer = ({onRightSwipe = () =>{}, onLeftSwipe = () =>{},onUpSwipe = () =>{},onDownSwipe = () =>{},children}) => { | |
| const panResponder = useRef( | |
| PanResponder.create({ | |
| onStartShouldSetPanResponder: () => true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {create} from 'zustand'; | |
| import {persist} from 'zustand/middleware'; | |
| import {createJSONStorage} from 'zustand/middleware'; | |
| import {MMKV} from 'react-native-mmkv'; | |
| const storage = new MMKV(); | |
| const zustandStorage = { | |
| setItem: (name, value) => { | |
| return storage.set(name, value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default linking = { | |
| prefixes: [ | |
| 'https://domain.subdomain.com', | |
| 'appScheme://app', | |
| ], | |
| config: { | |
| screens: { | |
| initialRouteName: 'yourBaseHomeScreenName', | |
| someScreenName: 'itsRoute', | |
| someOtherScreenName: 'itsRoute', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <intent-filter android:autoVerify="true"> | |
| <action android:name="android.intent.action.VIEW" /> | |
| <category android:name="android.intent.category.DEFAULT" /> | |
| <category android:name="android.intent.category.BROWSABLE" /> | |
| <data | |
| android:scheme="https" | |
| android:host="subdomain.domain.com" | |
| android:pathPattern="/someRouteWithAllNestedRoutes/.*" /> | |
| <data | |
| android:scheme="https" |