import React, { useState } from 'react'; import { View, StyleSheet } from 'react-native'; import { TextInput, Button } from 'react-native-paper'; import API from './../API.js'; import { useNavigation } from '@react-navigation/native'; let NewPost = ({profileid, newPostCB}) => { let [postContent, setPostContent] = useState(''); const navigation = useNavigation(); return ( { postContent ? ( ) : undefined } ); } export default NewPost; const styles = StyleSheet.create({ newPost: { margin: 10 } });