In addition to the Storybook for React setup, you'll also need to install these packages:
npm i -D @babel/core babel-loader css-loader style-loader
1. yarn add --dev detox jest-circus | |
2. detox init -r jest (This creates the e2e folder along with the .detoxrc.json) | |
3. yarn add --dev eslint-plugin-detox (optional) | |
plugins: [...'detox'...], | |
- Add this to your eslint config plugins | |
4.Make sure your your **eas.json** has a simulator build set up that looks like this then create a simulator release build by running: **eas build --profile simulator --platform ios** | |
"simulator": { | |
"ios": { | |
"simulator": true, |
const text = css({ | |
color: '$gray12', | |
variants: { | |
size: { | |
// corrective letter-spacing and text-indent styles | |
// should go here too, because they're determined by font-size. | |
// You could also put line-height here too, if your devs prefer | |
// a default line-height that works in some cases. But understand | |
// that line-height is also a function of line-length, so the |
import Image, { ImageProps } from 'next/image'; | |
import { imageBuilder } from './sanity'; | |
import type { SanityImageSource } from '@sanity/image-url/lib/types/types'; | |
interface MyImageProps extends Omit<ImageProps, 'src'> { | |
src: SanityImageSource; | |
quality?: number; | |
blur?: number; | |
} |
/* eslint-disable no-console */ | |
import client from 'part:@sanity/base/client' | |
// Run this script with: `sanity exec --with-user-token migrations/migrateValues.js` | |
// | |
// This example shows how you may write a migration script that migrates a field value | |
// on a specific document type. | |
// This will migrate documents in batches of 100 and continue patching until no more documents are | |
// returned from the query. | |
// |
In addition to the Storybook for React setup, you'll also need to install these packages:
npm i -D @babel/core babel-loader css-loader style-loader
import React, { Component } from "react"; | |
import { WebView } from "react-native-webview"; | |
import { Button, Modal, View } from "react-native"; | |
// Author: Hetmann Wilhelm Iohan | |
// Email: [email protected] | |
// Web: https://react-ui-kit.com | |
// YouTube: https://www.youtube.com/react-ui-kit | |
// This is a basic example showing how to use Zendesk Chat Widget using a webview inside a modal and a html code |
/** | |
* CUSTOM SANITY STUDIO INPUT COMPONENT FOR FONT-AWESOME | |
* | |
* This is a proof of concept custom input component that loads the whole free library of font awesome icons and makes them | |
* searchable in a downshift component. If they're selected the font name will be saved as a string on the document. | |
* | |
* Install dependencies in your studio folder with: | |
* yarn add @fortawesome/fontawesome-svg-core @fortawesome/react-fontawesome @fortawesome/free-solid-svg-icons downshift | |
* | |
* Use as a custom input component in your shcema: |
/* eslint-disable no-console */ | |
import client from 'part:@sanity/base/client' | |
import reduce from 'json-reduce' | |
// see https://github.com/sanity-io/sanity/blob/next/packages/example-studio/schemas/languages.js for an example | |
import {SUPPORTED_LANGUAGES} from '../schemas/languages' | |
import Translate from '@google-cloud/translate' | |
const translateAPI = new Translate({ |
Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew