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
// Using node v18.14.0 | |
let crypto = require('crypto'); | |
const secret = 'monty python'; | |
let messageToEncrypt = 'holy grail'; | |
// HMAC key creation | |
const key = crypto.createHmac('sha256', secret).update(secret).digest('base64'); |
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 { useEffect, useState } from 'react'; | |
import { Pressable, SafeAreaView, useWindowDimensions, View, Text, Image, Animated, Easing } from 'react-native'; | |
import picture from '../../assets/images/5.jpg'; | |
const BackgroundAnimatedView = () => { | |
const { height: screenHeight, width: screenWidth } = useWindowDimensions(); | |
const { width: imageWidth, height: imageHeight } = Image.resolveAssetSource(picture); | |
const aspectRatio = imageWidth / imageHeight; | |
const parallaxHeight = screenHeight; |
OlderNewer