import AsyncStorage from '@react-native-community/async-storage'; import React, {useState} from 'react'; import { Image, Modal, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import {PROFILE_CUTOUT_TOP_Y} from '../../constants'; import {normalize} from '../../utils'; import {UniversityIcon} from './'; import {UniversityIconProps} from './UniversityIcon'; interface BadgeTutorialProps { uniIconProps: UniversityIconProps; setShowBadgeTutorial: Function; } const BadgeTutorial: React.FC = ({ uniIconProps, setShowBadgeTutorial, }) => { const [showModal, setShowModal] = useState(true); const {layout, university, university_class} = uniIconProps; const onTap = async () => { await AsyncStorage.setItem('hasSeenBadgeTutorial', 'true'); setShowBadgeTutorial(false); setShowModal(false); }; return ( Tap on the univeristy icon to edit your badges! ); }; const styles = StyleSheet.create({ viewWrapper: { flex: 1, backgroundColor: 'rgba(0, 0, 0, 0.5)', }, modalView: { backgroundColor: '#fff', }, textContainerStyles: {top: '30%', width: '60%', alignSelf: 'center'}, textStyles: { color: 'white', fontWeight: '700', fontSize: normalize(20), lineHeight: normalize(25), textAlign: 'center', }, }); export default BadgeTutorial;