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 { Dimensions, TextInput, ScrollView } from "react-native"; | |
import Animated, { | |
useAnimatedKeyboard, | |
useAnimatedReaction, | |
runOnJS, | |
KeyboardState, | |
useAnimatedProps, | |
useAnimatedScrollHandler, |
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 {Dimensions, FlatList, View} from 'react-native'; | |
const screenWidth = Dimensions.get('window').width; | |
const numColumns = 2; | |
const gap = 5; | |
const availableSpace = screenWidth - (numColumns - 1) * gap; | |
const itemSize = availableSpace / numColumns; | |
const renderItem = ({item}) => { |
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 Networking from "react-native/Libraries/Network/RCTNetworking.ios"; | |
// Same import from .android | |
// import Networking from "react-native/Libraries/Network/RCTNetworking.android"; | |
let streamingServer = "Streaming Server URL"; | |
let requestId = null; |
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, useRef } from "react"; | |
import { View } from "react-native"; | |
import Animated, { | |
useAnimatedStyle, | |
useSharedValue, | |
} from "react-native-reanimated"; | |
// Example | |
export default function App() { |
OlderNewer