我想知道当用户单击字段来填充文本输入时如何清除“占位符”。
这是我的文本输入:
<TextInput
style={{height:40, borderColor: 'gray', borderWidth:1}}
onChangeText={(text) => this.setStoreName(text)}
value={this.state.storeName}
/>
Run Code Online (Sandbox Code Playgroud)
和我的构造函数:
constructor(props) {
super(props)
this.state = {
name: "Votre nom",
storeName: "Le nom de votre commerce",
email: "Votre email",
address: "L'adresse de votre commerce",
city: "Votre ville",
category: "Categorie",
password: "Votre mot de passe"
}
}
Run Code Online (Sandbox Code Playgroud)
先感谢您。
所以我的错误是
调用未定义函数 imagewebp()
我尝试了这个命令brew reinstall php72 --with-webp,但它不再起作用了。
我不知道应该在哪里以及如何更改我的conf 文件。
如果您有想法,谢谢
我按照 Amazon 的每个教程设置了 RDS 数据库,然后设置了 VPC、子网和安全组,但我仍然无法使用 Laravel 命令连接到数据库。
但是,我可以使用 MySQLWorkbench 连接到数据库...
这是我在使用命令“php artisan migrate”时遇到的错误
每一个帮助都将不胜感激,谢谢你们。
我试图保存我的用户登录然后在他的管理页面上重定向他的事实但是当我使用await时我得到了这个错误:
await是一个保留字(101)
另一件事,一旦我的用户注册,我想将他发送到一个新的页面,而不是一个"幻灯片页面",我们可以用右上角的箭头返回.我怎样才能做到这一点?
这是我的代码:
login(){
firebase.auth().signInWithEmailAndPassword(this.state.emailLogin,
this.state.passwordLogin).then((user) => {
// Send the user to the next step
try {
await AsyncStorage.setItem('@MySuperStore:key', 'I like
to save it.');
} catch (error) {
// Error saving data
}
const { navigate } = this.props.navigation;
navigate('Admin');
}).catch(function(error) {
var errorCode = error.code;
var errorMessage = error.message;
if (errorCode === 'auth/wrong-password') {
alert('Wrong password.');
} else {
alert(errorMessage);
}
console.log(error);
});
}
Run Code Online (Sandbox Code Playgroud)
在此先感谢您的帮助.
大家好我怎样才能从这种数据库结构中请求所有数据?
我试过这个,但它不起作用:
var recentPostsRef = firebase.database().ref('/store');
Run Code Online (Sandbox Code Playgroud) react-native ×3
amazon-ec2 ×1
amazon-rds ×1
asyncstorage ×1
firebase ×1
laravel ×1
php ×1
textinput ×1
webp ×1