我不明白为什么占位符不会出现在两个<TextInput>上。而且,当用户键入某些内容时,<TextInput>框中什么都不会显示。我想知道为什么会发生这种情况。
这是App.js
import React, {Component} from 'react';
import {View, StyleSheet} from 'react-native';
import BackGround from './components/BackGround';
export default class App extends Com
我正在开发React Native,我是一个初学者,如果我的问题特别简单的话,我很抱歉。
我目前在一个视图(Home.Js)中工作,而不是在App.Js中。在这个Home视图中,我有一个文本输入(用户名),我想要获取用户单击按钮时输入的值。我看了解释视频,但他们解释了如何在App.Js中实现它,当我在我的视图中实现它时,它不起作用。这是我的代码。谢谢
#Here We Are in my Home View (Home.Js) not App.Js
import React from 'react';
import { Image, ImageBackground, Sty
我正尝试在react-native(安卓)中渲染一个文本输入,在它下面有一条线,这是从borderBottomWidth属性put中得到的,当我输入的时候,出现了两行,看起来不太好,无法删除它,我尝试使用underlineColorAndroid='transparent',但没有起作用
import * as React from 'react';
import { Text, View, StyleSheet,TextInput } from 'react-native';
import Constants from 'expo-co