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 NextHead from 'next/head' | |
import React from 'react' | |
import ReactGA from 'react-ga' | |
import Router from 'next/router' | |
/*****************************************************************************\ |
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 * as React from "react"; | |
import { TouchableOpacity, Text } from "react-native"; | |
import { Notifications } from "expo" | |
import { useNotification } from "./useNotification"; | |
const sendNotification = async () => await Notifications.presentLocalNotificationAsync( | |
{ | |
title: "Notified!", | |
body: "Hello, World!", | |
data: {} |
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 Animated, { | |
useSharedValue, | |
withTiming, | |
useAnimatedStyle, | |
Easing, | |
makeRemote, | |
withSpring, | |
processColor, | |
useValue, | |
delay as RDelay, |
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
// web | |
import P, { ArrowContainer } from 'react-tiny-popover' | |
import React from 'react' | |
export default ({ | |
visible = false, | |
position, | |
onClose, | |
children, | |
content = null, |
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
diff --git a/node_modules/@expo/next-adapter/build/withExpo.js b/node_modules/@expo/next-adapter/build/withExpo.js | |
index 2e63eb4..b1cf9a9 100644 | |
--- a/node_modules/@expo/next-adapter/build/withExpo.js | |
+++ b/node_modules/@expo/next-adapter/build/withExpo.js | |
@@ -7,8 +7,8 @@ function withExpo(nextConfig = {}) { | |
// Prevent define plugin from overwriting Next.js environment. | |
process.env.EXPO_WEBPACK_DEFINE_ENVIRONMENT_AS_KEYS = 'true'; | |
const expoConfig = addons_1.withUnimodules(config, { | |
- projectRoot: nextConfig.projectRoot || process.cwd(), | |
- }, { supportsFontLoading: false }); |
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 useNativeSWR from 'swr' | |
import { useRef } from 'react' | |
// inspired by https://github.com/vercel/swr/discussions/456 | |
export default function useSWR(key, fetcher, options = {}) { | |
const { cachePolicy, ...opts } = options | |
const random = useRef(new Date()) | |
return useNativeSWR( | |
() => { |
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
/* eslint-disable no-inner-declarations */ | |
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; | |
let isEnabled = false; | |
if (canUseDOM) { | |
/** | |
* Web browsers emulate mouse events (and hover states) after touch events. | |
* This code infers when the currently-in-use modality supports hover | |
* (including for multi-modality devices) and considers "hover" to be enabled |
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 type { ComponentProps, ComponentType } from 'react' | |
import { | |
Platform, | |
Pressable, | |
Text, | |
TextProps, | |
ViewProps, | |
View, | |
} from 'react-native' | |
import { useLinkProps } from '@react-navigation/native' |
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
var CryptoJS = require('crypto-js'); | |
function uploadImage(uri) { | |
let timestamp = (Date.now() / 1000 | 0).toString(); | |
let api_key = 'your api key' | |
let api_secret = 'your api secret' | |
let cloud = 'your cloud name' | |
let hash_string = 'timestamp=' + timestamp + api_secret | |
let signature = CryptoJS.SHA1(hash_string).toString(); | |
let upload_url = 'https://api.cloudinary.com/v1_1/' + cloud + '/image/upload' |
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 DOUBLE_PRESS_DELAY = 300; | |
// ... | |
/** | |
* Double Press recognition | |
* @param {Event} e | |
*/ | |
handleImagePress(e) { | |
const now = new Date().getTime(); |
OlderNewer