Are you looking for TypeScript 5.0 support?
Add the following resolutions to your package.json
:
{
"resolutions": {
"@babel/preset-typescript": "^7.18.6",
Are you looking for TypeScript 5.0 support?
Add the following resolutions to your package.json
:
{
"resolutions": {
"@babel/preset-typescript": "^7.18.6",
const withPlugins = require('next-compose-plugins') | |
const getTranspiledPackages = () => { | |
const path = require('path') | |
const fs = require('fs') | |
const node_modules = path.resolve(__dirname, '../..', 'node_modules') | |
const monorepoScope = '@beatgig' |
import { ConfigPlugin } from '@expo/config-plugins' | |
export const makePlugin = <F extends ConfigPlugin<any>, A extends Parameters<F>[1]>( | |
f: F, | |
a: A | |
): [F, A] => { | |
return [f, a] | |
} |
import React from 'react' | |
import { View, useDripsyTheme, useResponsiveValue, Theme as DripsyTheme } from 'dripsy' | |
import { pickChild } from './pick-child' | |
type Props = { | |
/** | |
* Number of columns that should appear. If you want different columns at different screen sizes, use an array of numbers. | |
*/ | |
columns?: number | number[] | |
children: React.ReactNode |
export function useSellerBookingRequestPersonalized() { | |
const getArtistsWhoMaybeCouldBid = ({ artists, bookingRequest }) => { | |
return artists?.filter((artist) => | |
bookingRequest?.artist_ids?.includes(artist.id) | |
); | |
}; | |
const getAreAllMyBidsRejected = ({ artists, bookingRequest }) => { | |
const artistsWhoMaybeCouldBid = getArtistsWhoMaybeCouldBid({ | |
artists, |
If you need to restart a React Native app, and you're using Expo, then this gist will help you do it.
It also comes with web support.
Keep in mind, this will only work if you're using a custom dev client from Expo. If you aren't, then you should delete lines 11-13, and you won't be able to restart the app in dev mode.
import { MotiView } from 'moti' | |
import { styled } from 'dripsy' | |
import { LayoutViewProps } from './types' | |
import { Layout } from 'react-native-reanimated' | |
const LayoutView = ({ state, layout, ...props }: LayoutViewProps) => ( | |
<MotiView | |
state={state} | |
layout={ | |
layout === false |
name: Expo Preview | |
on: | |
push: | |
branches: [dev*, preview*] | |
paths: | |
- "**.ts" | |
- "**.tsx" | |
- "**.js" | |
- "**.json" | |
- "**.jsx" |
import { StyleSheet } from 'react-native' | |
import Animated, { | |
useAnimatedStyle, | |
useSharedValue, | |
withTiming, | |
} from 'react-native-reanimated' | |
import { AnimateHeightProps } from './index.types' | |
const transition = { duration: 200 } as const |
import type { | |
AppleAuthenticationButtonStyle, | |
AppleAuthenticationButtonType, | |
AppleAuthenticationUserDetectionStatus, | |
AppleAuthenticationButtonProps, | |
AppleAuthenticationCredential, | |
AppleAuthenticationSignInOptions, | |
} from 'expo-apple-authentication' | |
import { Image, Platform, Pressable, StyleSheet, Text } from 'react-native' | |
import { useEffect } from 'react' |