Код: Выделить всё
// ThemedView.jsx
import { View, useColorScheme } from 'react-native'
import { Colors } from '../constants/Colors'
const ThemedView = ({ style, ...props }) => {
const colorScheme = useColorScheme()
const theme = Colors[colorScheme] ?? Colors.light
return (
)
}
export default ThemedView
< /code>
register.jsx
import { StyleSheet } from 'react-native';
import { Link } from 'expo-router';
import ThemedView from '../components/ThemedView';
import Spacer from '../components/Spacer';
import ThemedText from '../components/ThemedText';
const Register = () => {
return (
Register for an Account
Login Instead
)
}
export default Register
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
},
title: {
fontSize: 18,
marginBottom: 30,
textAlign: 'center',
},
link: {
marginVertical: 10,
borderBottomWidth: 1,
},
});
Подробнее здесь: https://stackoverflow.com/questions/797 ... orted-file