Skip to content

Instantly share code, notes, and snippets.

View PrasathRavichandran's full-sized avatar
👋
Hi...

Prasath Ravichandran PrasathRavichandran

👋
Hi...
  • Indie Developer
  • Tamilnadu, India.
  • 13:24 (UTC -12:00)
View GitHub Profile
import { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
...
const InputLengthStyles = useAnimatedStyle(() =>
return {
width: withTiming(InputLength.value.width, {
duration: 250,
}),
};
import Animated, { useAnimatedStyle, useSharedValue, withTiming} from 'react-native-reanimated';
...
return (
<View style={styles.searchTopContainer}>
{/* Added InputLengthStyles animated styles */}
import React, {useRef} from 'react';
...
const inputRef = useRef<any>(null);
...
const onFocus = ()=>{
InputLength.value = {width: '90%'};
import React, {useRef} from 'react';
import {
Dimensions,
StyleSheet,
Text,
TextInput,
TouchableOpacity,
View,
} from 'react-native';
buildscript {
repositories {
// Check that you have the following line (if not, add it):
google() // Google's Maven repository
}
dependencies {
...
// Add this line
classpath 'com.google.gms:google-services:4.3.4'
}
const App = () => (
<SafeAreaView style={styles.container}>
<View>
<Text style={styles.title}>
The title and onPress handler are required. It is recommended to set accessibilityLabel to help make your app usable by everyone.
</Text>
<Button
title="Press me"
onPress={() => Alert.alert('Simple Button pressed')}
/>
const user = {
name: "Daniel",
age: 26,
};
user.location;