【发布时间】:2023-04-04 11:04:01
【问题描述】:
我遇到了下一个问题:首先,我的 Android 工作室崩溃了,我无法运行我的应用程序,然后出现了一个带有 jetifier 的问题,然后我遇到了一个错误“当前关注的字段已被弃用,将在未来的版本中删除”。有趣的事实:我以前没有见过这个错误。它是在 Android Studio 崩溃后开始的。我的代码是:
import React, { Component } from 'react'
import { View, TextInput, StyleSheet } from 'react-native'
import { SIGN_IN } from '../routes'
import { MyButton, MyTextInput, Header } from '../uikit'
import { w, h, styles } from '../constants/constants'
export default class LogIn extends Component {
state = {
}
render() {
return (
<View>
<Header title={'Welcome!'.toUpperCase()} />
<View style={styles.mainContainer}>
<MyTextInput
placeholder={'Email/Login'}
isSecure={false}
/>
<MyTextInput
placeholder={'Password'}
isSecure={true}
/>
<View style={styles.buttons}>
<MyButton
name={'Log in'.toUpperCase()}
onPress={() => this.props.navigation.navigate(SIGN_IN)} />
<MyButton
name={'Sign in'.toUpperCase()}
onPress={() => this.props.navigation.navigate(SIGN_IN)} />
</View>
</View>
</View>
)
}
}
【问题讨论】:
标签: javascript android reactjs react-native