Skip to content

Instantly share code, notes, and snippets.

View nderscore's full-sized avatar
👉
😎 👉

_nderscore nderscore

👉
😎 👉
View GitHub Profile
@nderscore
nderscore / tamagui-ts-plugin-expo-only.md
Created August 14, 2023 03:36
tamagui-typescript-plugin workaround for expo-only

Workaround for Expo-only usage

This is hopefully a temporary workaround to enable Expo-only users to use tamagui-typescript-plugin

  1. Add @tamagui/static to your project

    yarn add @tamagui/static
    
@nderscore
nderscore / TamaguiZeego.tsx
Last active February 9, 2025 20:50
Example of how to wrap Zeego's components with Tamagui styles
import { FC } from 'react';
/**
* Utilities to make Typescript happy wrapping Zeego components with Tamagui's
* styled() components. These utils do nothing except assign Typescript types.
*
* Makes the following props optional and of `unknown` type:
* - children
* - key
*
import { getVariable, ThemeTokens, useTheme } from '@tamagui/core';
import { Path, Svg } from 'react-native-svg';
const AR = 2;
export type MeterProps = {
color: ThemeTokens;
min: number;
max: number;
value?: number | null;