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
Set-PSReadlineOption -BellStyle None | |
function prompt { | |
$p = Split-Path -leaf -path (Get-Location) | |
"$p> " | |
} |
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 { remote } from "webdriverio"; | |
jest.setTimeout(60000); | |
const appPackage = "host.exp.exponent"; | |
const appActivity = `${appPackage}.experience.HomeActivity`; | |
const capabilities = { | |
platformName: "android", | |
deviceName: "89RX0E545", // Change to the name of the AVD you're using |
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 useProxyDefault = !API_CONSTANTS.PRODUCTION | |
const useProxy = Platform.select({ web: false, default: useProxyDefault }) | |
const redirectUri = useProxyDefault | |
? AuthSession.makeRedirectUri({ useProxy }) | |
: `scheme://yourauth0domain.us.auth0.com/${API_CONSTANTS.OS}/${API_CONSTANTS.BUNDLE_ID}/callback` | |
// ... | |
const [request, result, promptAsync] = AuthSession.useAuthRequest( |
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
// See this recommendation for the native fix | |
// https://github.com/invertase/react-native-firebase/issues/6725#issuecomment-1342808185 | |
import { ExpoConfig, ConfigContext } from "@expo/config" | |
import { ConfigPlugin, withDangerousMod } from "expo/config-plugins" | |
import { mergeContents } from "@expo/config-plugins/build/utils/generateCode" | |
import * as fs from "fs" | |
import * as path from "path" | |
const withReactNativeFirebase: ConfigPlugin = (config) => { |
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
// for really long PR pages, execute this function to auto press "Load more" until done | |
function expandPR() | |
{ | |
var loadMore = document.querySelector('.ajax-pagination-btn'); | |
if (loadMore.length !== 0) | |
{ | |
console.log('Clicking all these "Load more": ' + loadMore.length); | |
loadMore.click(); | |
setTimeout(expandPR, 500); | |
return; |
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 { ConfigPlugin, withAppBuildGradle, withMainApplication } from "expo/config-plugins" | |
/** | |
* | |
* Expo Config Plugin to disable Flipper entirely in Android | |
* | |
* How it works: | |
* 1) Remove the dependency from app/build.gradle | |
* 2) Remove ReactNativeFlipper initialization from MainApplication.kt | |
*/ |