Skip to content

Instantly share code, notes, and snippets.

View piaskowyk's full-sized avatar
🚀

Krzysztof Piaskowy piaskowyk

🚀
  • Software Mansion
  • Poland
View GitHub Profile
import React, { useState } from 'react';
import { Pressable, Text } from 'react-native';
import Animated, { css } from 'react-native-reanimated';
export default function GlowButton() {
const [pressed, setPressed] = useState(false);
return (
<Pressable onPress={() => setPressed(!pressed)}>
<Animated.View
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})`
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} />
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 },
]} />