Progress on i18n
This commit is contained in:
@@ -83,18 +83,19 @@ let NewPost = ({ profileid, newPostCB }) => {
|
||||
return (
|
||||
<View style={styles.newPost}>
|
||||
<TextInput
|
||||
label="New Post"
|
||||
label={i18n.t("message.statusUpdate")}
|
||||
value={postContent}
|
||||
onChangeText={setPostContent}
|
||||
mode="outlined"
|
||||
multiline={true}
|
||||
numberOfLines={3}
|
||||
/>
|
||||
{
|
||||
postContent ? (
|
||||
<>
|
||||
<View style={{ flexDirection: "row", justifyContent: 'flex-end' }}>
|
||||
<Button icon="add-a-photo" mode="outlined" onPress={pickImage} ></Button>
|
||||
<Button icon="send" mode="outlined" onPress={handleNewPostButton}>Post</Button>
|
||||
<Button icon="send" mode="outlined" onPress={handleNewPostButton}>{i18n.t("message.post")}</Button>
|
||||
</View>
|
||||
{photo && (
|
||||
<View>
|
||||
@@ -122,6 +123,7 @@ export default NewPost;
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
newPost: {
|
||||
margin: 10
|
||||
margin: 10,
|
||||
padding: 10,
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user