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 { Canvas, Circle, Group, Rect, Shader, Skia, useClock, RuntimeShader, SkRuntimeEffect, RoundedRect } from "@shopify/react-native-skia"; | |
| import { SafeAreaView, StyleSheet } from "react-native"; | |
| import { useDerivedValue, useSharedValue } from "react-native-reanimated"; | |
| import { Gesture, GestureDetector, GestureHandlerRootView } from 'react-native-gesture-handler'; | |
| const styles = StyleSheet.create({ | |
| centered: { | |
| flex: 1, | |
| alignItems: 'center', | |
| justifyContent: 'center', |
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 SwiftUI | |
| struct AnimatingMeshView: View { | |
| let referenceDate: Date | |
| var body: some View { | |
| TimelineView(.animation) { context in | |
| let t = context.date.timeIntervalSince(referenceDate) | |
| MeshGradient(width: 5, height: 4, points: [ |
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
| // | |
| // AssetRecorderView.swift | |
| // Snowball | |
| // | |
| // Created by Le Tai on 7/20/16. | |
| // Copyright © 2016 Snowball. All rights reserved. | |
| // | |
| import UIKit | |
| import AVFoundation |