import {StyleSheet, Text, View} from 'react-native'; import React, { useState } from 'react'; import fonts from '../theme/fonts'; import NewscoutTitleHeader from '../components/organisms/Headers/NewscoutTitleHeader'; import { List, Switch } from 'react-native-paper'; const NotificationSettingsPage = props => { const {navigation} = props; const [soundStatus, setSoundStatus] = useState(false); const [vibrateStatus, setVibrateStatus] = useState(false); const [tipStatus, setTipStatus] = useState(false); const [serviceStatus, setServiceStatus] = useState(false); const listItems = [ { title: 'Sound', id: 0, state: soundStatus, onChange: () => setSoundStatus(!soundStatus), }, { title: 'Vibrate', id: 1, state: vibrateStatus, onChange: () => setVibrateStatus(!vibrateStatus), }, { title: 'New tips available', id: 2, state: tipStatus, onChange: () => setTipStatus(!tipStatus), }, { title: 'New service available', id: 3, state: serviceStatus, onChange: () => setServiceStatus(!serviceStatus), }, ]; return ( navigation.goBack()} /> {listItems.map(item => ( ( )} /> ))} {/* ( setFaceIdStatus(!faceIdStatus)} /> )} /> ( setRememberMeStatus(!rememberMeStatus)} /> )} /> ( setTouchIdStatus(!touchIdStatus)} /> )} /> */} ); }; export default NotificationSettingsPage; const styles = StyleSheet.create({ listItemText: { fontFamily: fonts.type.medium, }, listItem: { height: 64, justifyContent: 'center', }, });