This file contains 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 { 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 |
This file contains 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 { 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'], | |
}); |
This file contains 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, 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" |
This file contains 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 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 |
This file contains 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
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 |
This file contains 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
// | |
// AirPodsMaxAnimation.swift | |
// OpenvisionOS | |
// | |
// Created by Amos Gyamfi on 12.11.2023. | |
// | |
import SwiftUI | |
import RealityKit | |
import RealityKitContent |
This file contains 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
// | |
// BouncyAlternative.swift | |
// ChatReactionAnimations | |
// | |
import SwiftUI | |
struct BouncyAlternative: View { | |
@State private var scaleRotate = false | |
@State private var thumbsCount = 0 |
This file contains 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
// | |
// MickeyMouseAnimation.swift | |
// Created by AmosG | |
// | |
import SwiftUI | |
struct MickeyMouseAnimation: View { | |
This file contains 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
// | |
// MickeyMouseIllustration.swift | |
import SwiftUI | |
struct MickeyMouseIllustration: View { | |
var body: some View { | |
ZStack { | |
VStack(spacing: -14) { |
This file contains 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
// | |
// AroundMeetingControlsView.swift | |
import SwiftUI | |
import StreamVideo | |
import StreamVideoSwiftUI | |
struct AroundMeetingControlsView: View { | |
@ObservedObject var viewModel: CallViewModel |