<StackScreen>
에 페이지화하기<Stack.Screen name="AboutPage" component={AboutPage}/>```
onPress={()=>{navigation.navigate('AboutPage')}
👇 Share 기능
import { Share } from "react-native";
const share = () => {
Share.share({
message:`${tip.title} \n\n ${tip.desc} \n\n ${tip.image}`,
});
}
<TouchableOpacity style={styles.button} onPress={()=>share()}><Text style={styles.buttonText}>팁 공유하기</Text></TouchableOpacity>
👇 외부 링크(Link) 클릭
expo install expo-linking
import * as Linking from 'expo-linking';
const link = () => {
Linking.openURL("https://spartacodingclub.kr")
}
<TouchableOpacity style={styles.button} onPress={()=>link()}><Text style={styles.buttonText}>외부 링크</Text></TouchableOpacity>
과제 수행 중 해결될 때 그 기쁨이란!!
모르고 막막했지만 계속 도전한 나 칭찬해🦾