Instantly share code, notes, and snippets.
eveningkid
/ react-native-shared-elements_facebook-marketplace.jsx
Created
March 24, 2021 10:22
React Native Shared Elements: Facebook Marketplace Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Expo SDK40 | |
// @react-native-community/masked-view: 0.1.10 | |
// @react-navigation/native: ^5.9.3 | |
// @react-navigation/stack: ^5.14.3 | |
// react-native-gesture-handler: ~1.8.0 | |
// react-native-reanimated: ~1.13.0 | |
// react-native-safe-area-context: 3.1.9 | |
// react-native-screens: ~2.15.2 | |
// react-native-shared-element: 0.7.0 | |
// react-navigation: 4 |
vcapretz
/ instagram-like-button.jsx
Created
January 15, 2021 14:00
A simple Like button with a nice animation using react-native-reanimated v2, support for my post in https://vcapretz.com/2021/instagram-button-react-native
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import Animated, { | |
useSharedValue, | |
withSpring, | |
useAnimatedStyle, | |
Extrapolate, | |
interpolate, | |
} from "react-native-reanimated"; | |
import { Pressable, View, Button, StyleSheet } from "react-native"; | |
import { MaterialCommunityIcons } from "@expo/vector-icons"; |