This file contains 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, { ReactElement } from 'react'; | |
import { StyleSheet, TouchableOpacity } from 'react-native'; | |
import Icon from 'react-native-vector-icons/MaterialIcons'; | |
import { Subtitle } from '../subtitle/subtitle'; | |
import { defaultStyle } from '../../styles/theme.style'; | |
interface DateSelectProps { | |
label: string | undefined; | |
handlePickerOpen: () => void; | |
testID?: string; |
This file contains 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
// | |
// ExifData.swift | |
// Qeepsake | |
// | |
// Created by Luke Farrell on 26/05/2022. | |
// | |
import Foundation | |
import ImageIO |
This file contains 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
lane :upload_sourcemaps do |options| | |
platform = options[:platform] || "ios" | |
version = options[:version] || get_version_number(xcodeproj: './ios/qeepsake.xcodeproj') | |
build_number = options[:build_number] || (platform == "ios" ? get_build_number(xcodeproj: "./ios/qeepsake.xcodeproj") : get_version_code()) | |
bundle_name = platform == "ios" ? "main.jsbundle" : "index.android.bundle" | |
app_id = platform == "ios" ? "co.qeepsake.qeepsake" : "co.qeepsake.qeepsakeApp" | |
os_bin = platform == "ios" ? "osx-bin" : "linux64-bin" | |
puts "uploading sourcemaps for platform #{platform}, version #{version}, and build #{build_number}..." | |
sh("cd .. && |
This file contains 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
/* NPM - Node Package Manage */ | |
import React from 'react'; | |
import { View, ScrollView } from 'react-native'; | |
import { useTransition, animated } from "@react-spring/native"; | |
/** Constants */ | |
const AnimatedView = animated(View); | |
const ListItemHeight = 190; | |
export function WorkspaceScreen() { | |
const edges = [...]; |
This file contains 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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; | |
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"MyApp" initialProperties:nil]; | |
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; | |
UIViewController *rootViewController = [UIViewController new]; | |
rootViewController.view = rootView; | |
self.window.rootViewController = rootViewController; | |
[self.window makeKeyAndVisible]; |
This file contains 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
def latest_googleplay_version_code | |
productionVersionCodes = google_play_track_version_codes(track: 'production') | |
betaVersionCodes = google_play_track_version_codes(track: 'beta') | |
alphaVersionCodes = google_play_track_version_codes(track: 'alpha') | |
internalVersionCodes = google_play_track_version_codes(track: 'internal') | |
# puts version codes from all tracks into the same array | |
versionCodes = [ | |
productionVersionCodes, | |
betaVersionCodes, |
This file contains 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
useEffect(() => { | |
if((isReferralsError && !isReferralsEmpty) || (isUserError && !isUserEmpty)){ | |
actionTipRef.current.show("Unable to load latest results") | |
} | |
}, [isReferralsError, isUserError, isReferralsEmpty, isUserEmpty]) |
This file contains 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
/** | |
* @author Luke Brandon Farrell | |
* @description | |
*/ | |
/* NPM - Node Package Manage */ | |
import React, { useState } from "react"; | |
import PropTypes from "prop-types"; | |
const AsyncBoundary = ({ |
This file contains 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
const { data: userData, isLoading: isUserLoading, error: isUserError } = ...; | |
const { data: referralData, isLoading: isReferralsLoading, error: isReferralsError } = ...; | |
const isUserReferralEmpty = _isNil(referralUrl); | |
const isReferralsEmpty = _isEmpty(referrals); | |
const isReferralsAvailable = !_isEmpty(referrals) && !isReferralsError; |
This file contains 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 { Alert, BackHandler } from "react-native"; | |
/* | |
* If we are using React Native Navigation | |
* the BackHandler.exitApp() will in some | |
* cases invoke a pop instead of exiting | |
* the application. Using the following | |
* library solves this issue: | |
* | |
* import RNExitApp from "react-native-exit-app"; |
NewerOlder