react native reducer dispatch not working
I am trying to learn react-native on my own. Using below version for react/react-native
“react”: “18.2.0”,
“react-native”: “0.74.5”,
I am trying to build a simple authentication flow using AuthCotext and reducer. Below is the code
How to stop the sound player when I move to next screen
I want to stop the sound player whenever I move to next screen in app.
React Native : How to stop the sound player when I move to next screen
I want to stop the sound player whenever I move to next screen in app.
React Native without Expo – how to export from function values obtained by promises?
I have this scenario using pure React Native without Expo: I am currently using @react-native-tethering
libraries (wifi and hotspot) from GitHub, and trying to populate inside a text paragraph the wifi’s or hotspot’s IP address.
So I have the App()
function in main tsx file like :
useEffect display the good results and then display something else without any changes
import { View, Text, StyleSheet, Pressable, Button, ActivityIndicator, Alert, FlatList } from ‘react-native’; import { useEffect, useState } from ‘react’; import { supabase } from ‘../lib/supabase’; import { useAuth } from ‘../providers/AuthProvider’; import { Quizz } from ‘../types/db’ import { Stack } from ‘expo-router’; export default function dailyQuizz() { const [listeQuestion, setListeQuestion] = useState<Quizz[]>([]); const […]
Having trouble with useState working with useEffect in React Native App
I’m having an issue having my state work with a toggle to switch between categories. As far as I understand it I should be using the useEffect hook to have the page re render dependent on conditions.
Memoizing small component that uses “useStyle” objects from parent
In the code below i have three options ( three blocks ) that i want to memoize to avoid re-rendering