Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// screens/Settings.js
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { useSelector } from 'react-redux'; // import the hooks
export default function HomeScreen() {
const settings = useSelector(state => state.settings); // retrieve settings from the store
console.log('Settings: ', settings);
return (
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.