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 {createRunOncePlugin, IOSConfig, withDangerousMod} = require("@expo/config-plugins") | |
const fs = require("fs/promises") | |
const withCarPlay = (config) => { | |
config = withCarPlayAppDelegate(config) | |
config = withCarPlayAppDelegateHeader(config) | |
return config | |
} | |
const withCarPlayAppDelegate = (conf) => { |
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
// Credits to https://github.com/enesozturk/rn-swipeable-panel version 1.2.1 | |
// Removed background elements to fix Android bugs | |
const React = require("react") | |
const reactNative = require("react-native") | |
function _extends() { | |
_extends = | |
Object.assign || | |
function(target) { |
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 from "react" | |
import camelcaseKeys from "camelcase-keys" | |
import Svg, {G, Path} from "react-native-svg" | |
import {Home} from "@streamlinehq/streamline-light/lib/interface-essential" | |
export const StreamlineIcon = ({ | |
icon, | |
fill, | |
size, |
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
export const sha256HashString = async (message) => { | |
const msgUint8 = new TextEncoder().encode(message); // encode as (utf-8) Uint8Array | |
const hashBuffer = await crypto.subtle.digest('SHA-256', msgUint8); // hash the message | |
const hashArray = Array.from(new Uint8Array(hashBuffer)); // convert buffer to byte array | |
const hashHex = hashArray.map(b => b.toString(16).padStart(2, '0')).join(''); // convert bytes to hex string | |
return hashHex; | |
} | |
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 { MdAdd, MdEdit, MdPeople, MdPersonAdd, MdPublic } from "react-icons/md" | |
import S from "@sanity/desk-tool/structure-builder" | |
import client from "part:@sanity/base/client" | |
export default () => | |
// const disabledDefaultList = () => | |
S.list() | |
.title("Content") | |
.items([ |
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 paraElements = document.querySelectorAll('.parallax-hero__image'); | |
var paraSpeed = 0.2; | |
var paraOffsets = []; | |
var paraScrolling = false; | |
// add parallax transform to all matched elements, and check their offset from top | |
for (var i = 0; i < paraElements.length; i++){ | |
paraElements[i].style.transform = 'translateY( calc( var(--scrollparallax) * 1px ) )'; | |
var bodyRect = document.body.getBoundingClientRect(), | |
elemRect = paraElements[i].getBoundingClientRect(), |