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 { useEffect, useState, Profiler } from 'react'; | |
import { Button, View } from 'react-native'; | |
const AMOUNT = 1000; | |
function TestView() { | |
return ( | |
<View style={[ | |
{ width: 100, height: 1, backgroundColor: 'red', flex: 1 }, | |
]} /> |
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 { View } from 'react-native'; | |
import Animated, { css } from 'react-native-reanimated'; | |
export default function Ball() { | |
return ( | |
<View style={styles.container}> | |
<Animated.View style={styles.blob} /> | |
<Animated.View style={styles.shadow} /> |
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, { useState } from 'react'; | |
import { Pressable, View } from 'react-native'; | |
import Animated, { css } from 'react-native-reanimated'; | |
export default function Wave() { | |
const [clickLocation, setClickLocation] = useState({ x: -1, y: -1 }); | |
const dots = Array.from({ length: 323 }); | |
const size = 19; | |
const color = `rgb(${Math.random() * 255}, ${Math.random() * 255}, ${Math.random() * 255})` |
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 Animated, { | |
useSharedValue, | |
withTiming, | |
useAnimatedStyle, | |
runOnUI, | |
withRepeat, | |
useFrameCallback, | |
makeMutable | |
} from 'react-native-reanimated'; | |
import { View, Button } from '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 Animated, { | |
useSharedValue, | |
withTiming, | |
useAnimatedStyle, | |
runOnUI, | |
makeMutable, | |
runOnJS, | |
} from 'react-native-reanimated'; | |
import { View, Button } from 'react-native'; | |
import React from 'react'; |
NewerOlder