Skip to content

Instantly share code, notes, and snippets.

View amosgyamfi's full-sized avatar

Amos Gyamfi amosgyamfi

View GitHub Profile
import React from 'react';
import { StreamCall, StreamVideo, StreamVideoClient, User } from '@stream-io/video-react-native-sdk';
import { SafeAreaView, Text, StyleSheet, View, Image } from 'react-native';
const apiKey = ''; // the API key can be found in the "Credentials" section
const token = ''; // the token can be found in the "Credentials" section
const userId = ''; // the user id can be found in the "Credentials" section
const callId = ''; // the call id can be found in the "Credentials" section
// Initialize the user object. The user can be anonymous, guest, or authenticated
import React, { useState } from 'react';
import { Animated, TouchableOpacity, View, StyleSheet } from 'react-native';
const AnimationCompletionCriteria = () => {
const scaleRotate = useState(new Animated.Value(0))[0];
const rotation = scaleRotate.interpolate({
inputRange: [0, 1],
outputRange: ['0deg', '-45deg'],
});
import React, { useState, useRef } from 'react';
import { View, TouchableOpacity, Animated, StyleSheet } from 'react-native';
const RootStack = createStackNavigator(
{
Hamburger: StateChange, // Assuming StateChange is the component in Hamburger.js
Home: HomeScreen,
},
{
initialRouteName: "Hamburger"
// Import necessary modules
import { StatusBar } from 'expo-status-bar';
import React, { useEffect, useRef } from 'react';
import { StyleSheet, Animated, View } from 'react-native';
export default function App() {
// Define the values to be animated
const scaleValue = useRef(new Animated.Value(1)).current;
// Function to animate the content
package com.example.audioroom
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
//
// AirPodsMaxAnimation.swift
// OpenvisionOS
//
// Created by Amos Gyamfi on 12.11.2023.
//
import SwiftUI
import RealityKit
import RealityKitContent
//
// BouncyAlternative.swift
// ChatReactionAnimations
//
import SwiftUI
struct BouncyAlternative: View {
@State private var scaleRotate = false
@State private var thumbsCount = 0
//
// MickeyMouseAnimation.swift
// Created by AmosG
//
import SwiftUI
struct MickeyMouseAnimation: View {
@amosgyamfi
amosgyamfi / MickeyMouseIllustration.swift
Created October 22, 2023 13:19
Misckey Mouse Illustration
//
// MickeyMouseIllustration.swift
import SwiftUI
struct MickeyMouseIllustration: View {
var body: some View {
ZStack {
VStack(spacing: -14) {
//
// AroundMeetingControlsView.swift
import SwiftUI
import StreamVideo
import StreamVideoSwiftUI
struct AroundMeetingControlsView: View {
@ObservedObject var viewModel: CallViewModel