Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from "react";
- import { View, Text } from "react-native";
- const Alert = ({ title, text }) => {
- return (
- <ThemeContext.Consumer>
- {theme => (
- <View style={[
- ...,
- {
- backgroundColor: "#fdd5d3",
- borderColor: "#fc9e97"
- }
- ]}>
- <Text style={[..., { color: "#a4150b" }]}> {title} </Text>
- <Text style={[..., { color: "#a4150b" }]}> {text} </Text>
- </View>
- </ThemeContext.Consumer>
- );
- };
- export default Alert;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement