Skip to content

Instantly share code, notes, and snippets.

View schriker's full-sized avatar

Marcin Janus schriker

View GitHub Profile

Issue

I have expo module where I was trying to add package: https://github.com/garmin/fit-swift-sdk as depnedency but it only supports SPM. When trying to use:

  spm_dependency(s,
        url: 'https://github.com/garmin/fit-swift-sdk.git',
        requirement: {kind: 'upToNextMajorVersion', minimumVersion: '21.178.0'},
        products: ['FITSwiftSDK']
    )
@schriker
schriker / AccordionItem.tsx
Last active July 26, 2024 14:53
Accordion open by default
import { Pressable, Section, Typography } from '@components'
import EntypoIcons from '@expo/vector-icons/Entypo'
import { TypographySize } from '@types'
import { View } from 'react-native'
import Animated, { runOnUI, useAnimatedStyle, withTiming } from 'react-native-reanimated'
import styled, { useTheme } from 'styled-components/native'
import { useAccordion } from '../hooks'
type AccordionItemProps = {
@schriker
schriker / OTPInput.tsx
Created September 4, 2022 06:54
Simple React Native One Time Password Input
import React, { useRef } from 'react'
import { NativeSyntheticEvent, TextInput, TextInputKeyPressEventData, View } from 'react-native'
import { useStyles } from 'lib/hooks'
import { createStyles } from 'lib/styles'
import { Nullable } from 'lib/types'
type OTPInputProps = {
length: number,
value: Array<string>,
disabled: boolean,