Skip to content

Commit

Permalink
Adding a Button to a Form
Browse files Browse the repository at this point in the history
  • Loading branch information
EuJinnLucaShow committed Aug 11, 2023
1 parent 8b05792 commit 188fd31
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
View,
ImageBackground,
TextInput,
TouchableOpacity,
} from 'react-native';

const wallpaper = require('./assets/images/wallpaper.png');
Expand All @@ -24,6 +25,9 @@ export default function App() {
placeholder="Пароль"
secureTextEntry={true}
/>
<TouchableOpacity style={styles.button} activeOpacity={0.8}>
<Text style={styles.buttonText}>Зареєструватися</Text>
</TouchableOpacity>
</View>
</ImageBackground>
<StatusBar style="auto" />
Expand Down Expand Up @@ -54,4 +58,18 @@ const styles = StyleSheet.create({
borderRadius: 8,
paddingHorizontal: 16,
},
button: {
marginHorizontal: 32,
marginTop: 43,
backgroundColor: '#FF6C00',
borderRadius: 100,
paddingVertical: 16,
},
buttonText: {
textAlign: 'center',
fontSize: 16,
color: '#fff',
fontFamily: 'Roboto',
fontWeight: '400',
},
});

0 comments on commit 188fd31

Please sign in to comment.