This commit is contained in:
aeroreyna
2022-03-08 22:16:19 -08:00
parent 0ebe199c23
commit 4ee4126ecb
2 changed files with 28 additions and 8 deletions

View File

@@ -3,10 +3,20 @@ import React, { useState, useEffect } from 'react';
import { View, ActivityIndicator, StyleSheet, SafeAreaView, FlatList } from 'react-native';
import API from './../API.js';
import Post from './../components/Post.js';
import { Provider as PaperProvider } from 'react-native-paper';
import { Provider as PaperProvider, DefaultTheme, } from 'react-native-paper';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import NewPost from "./../components/NewPost.js";
const theme = {
...DefaultTheme,
roundness: 2,
colors: {
...DefaultTheme.colors,
primary: '#000000',
accent: '#0d6efd',
background: "#edf2f7",
},
};
let Feed = ({ navigation, route }) => {
@@ -33,7 +43,7 @@ let Feed = ({ navigation, route }) => {
return (
<PaperProvider settings={{
icon: props => <MaterialIcons {...props} />,
}}>
}} theme={theme}>
<SafeAreaView style={styles.container}>
<View>
<FlatList