Typos, iOS player and reset password

This commit is contained in:
Adolfo Reyna
2023-02-06 14:43:05 -05:00
parent 6b8f9a56c5
commit f52b77f250
5 changed files with 66 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react';
import { View, TextInput, Image } from "react-native";
import { View, TextInput, Image, ScrollView } from "react-native";
import { Text, Button, Divider } from "react-native-paper";
import { SafeAreaView } from "react-native-safe-area-context";
import API from './../API.js';
@@ -96,13 +96,14 @@ let NewPostView = (props) => {
API.newPost(postContent + " " + extraContent.join(" "), props.route.params?.toProfile).then((newPost) => {
setPostContent('');
setExtraContent([]);
navigation.navigate('Feed', {reRender: Math.random()});
navigation.navigate('Feed', { reRender: Math.random() });
//if (newPostCB) newPostCB(newPost);
});
}
return (
<View style={{ padding: 10, paddingTop: 20, flex:1, justifyContent:"center"}}>
<ScrollView>
<View style={{ padding: 10, paddingTop: 20, flex: 1, justifyContent: "center" }}>
<View style={{ flexDirection: "row", marginBottom: 10, justifyContent: "space-around" }}>
<Text style={{ fontSize: 25 }}>{i18n.t("message.statusUpdate")}:</Text>
<Button icon="send" mode="outlined" onPress={handleNewPostButton}>
@@ -151,6 +152,7 @@ let NewPostView = (props) => {
)
}
</View>
</ScrollView>
)
}