import React, {useEffect, useRef} from 'react';
import {StyleSheet, Text, TouchableOpacity, View} from 'react-native';
import Rive from 'rive-react-native';
function App(): JSX.Element {
const animRef = useRef<any>(null);
const playAnimation = () => {
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
var yellowText; | |
var purpleText; | |
var redText; | |
var blackText; | |
function create3DTextTitle(scene, camera, name = null) { | |
yellowText = scene.getMeshByName("Text_Yellow"); | |
purpleText = scene.getMeshByName("Text_Blue"); // Adjusted name from "Text_Blue" | |
redText = scene.getMeshByName("Text_Red"); | |
blackText = scene.getMeshByName("Text_Black"); |
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
var createScene = function () { | |
// This creates a basic Babylon Scene object (non-mesh) | |
var scene = new BABYLON.Scene(engine); | |
// This creates and positions a free camera (non-mesh) | |
var camera = new BABYLON.FreeCamera("camera1", new BABYLON.Vector3(0, 5, -10), scene); | |
// This targets the camera to scene origin |
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, { Component } from 'react'; | |
import { View, Text, StyleSheet, findNodeHandle, PanResponder, Alert, Dimensions } from 'react-native'; | |
const data = [ | |
['A', 'B', 'C', 'D', 'E'], | |
['F', 'G', 'H', 'I', 'J'], | |
['K', 'L', 'M', 'N', 'O'], | |
['P', 'Q', 'R', 'S', 'T'], | |
['U', 'V', 'W', 'X', 'Y'], | |
]; |
let up = true;
let down = true;
let screenCounter = 0;
let incrementBy = 1;
let defaultTftMode = "light";
const lengthOfScreen = 4;
// direction would be up or down
function changeScreen(direction = null) {