import React, { useState } from 'react'; import { View, StyleSheet, Icon } from 'react-native'; import { TextInput, Button } from 'react-native-paper'; import API from './../API.js'; import { useNavigation } from '@react-navigation/native'; import AwesomeIcon from 'react-native-vector-icons/FontAwesome'; let NewComment = ({ postid, newComentAdded }) => { let [commentContent, setCommentContent] = useState(''); const navigation = useNavigation(); return ( ); } export default NewComment; const styles = StyleSheet.create({ NewComment: { margin: 10, flexDirection: "row", flex: 6 } });