iOS에서 버튼을 누르면 투명도가 조정되고, 안드로이드에서 버튼을 누르면 물결 효과가 나타납니다. 컴포넌트를 다 만들었다면 SignInScreen에서 사용해보세요.

    screens/SignInScreen.js

    import React from 'react';
    import {StyleSheet, Text, View} from 'react-native';
    import {SafeAreaView} from 'react-native-safe-area-context';
    import BorderedInput from '../components/BorderedInput';
    import CustomButton from '../components/CustomButton';
    
    function SignInScreen() {
      return (
        <SafeAreaView style={styles.fullscreen}>
          <Text style={styles.text}>PublicGallery</Text>
          <View style={styles.form}>
            <BorderedInput hasMarginBottom />
            <BorderedInput />
            <View style={styles.buttons}>
              <CustomButton title="로그인" hasMarginBottom />
              <CustomButton title="회원가입" />
            </View>
          </View>
        </SafeAreaView>
      );
    }
    
    const styles = StyleSheet.create({
      fullscreen: {
        flex: 1,
        alignItems: 'center',
        justifyContent: 'center',
      },
      text: {
        fontSize: 32,
        fontWeight: 'bold',
      },
      form: {
        marginTop: 64,
        width: '100%',
        paddingHorizontal: 16,
      },
      buttons: {
        marginTop: 64,
      },
    });
    
    export default SignInScreen;
    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.