【问题标题】:Currently focused field is deprecated and will be removed in a future release当前重点字段已弃用,将在未来版本中删除
【发布时间】: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


    【解决方案1】:

    解决方案很简单。我刚刚将我的路由器导航器更新到最新版本

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-28
      • 1970-01-01
      相关资源
      最近更新 更多