Themming
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user