Skip to content

Instantly share code, notes, and snippets.

View markjsc's full-sized avatar

Mark Johnston markjsc

  • Owensboro, KY (USA)
View GitHub Profile
@sturmenta
sturmenta / feedback.tsx
Last active June 29, 2024 18:35
react native collapse animation dynamic height
import React, {useEffect, useImperativeHandle, useState} from 'react';
import {Keyboard, View} from 'react-native';
import {useTheme} from '@react-navigation/native';
import {useSpring, animated} from '@react-spring/native';
import {MyThemeInterfaceColors} from '_styles';
import {GetDimensions} from '_atoms';
import {MultilineTextInput, Button, TextInputRef} from '_molecules';
import {getPercentageInHex, themedStyleSheet} from '_utils';
import {usePrevious} from '_hooks';