Having trouble changing the text color and getting a Parsing error? Can someone help me find the error and suggest a solution?
Check out my code below
import React from 'react';
import react, { Component } from 'react'
import { Plateform, StyleSheet, view,text } from 'react-native';
**I'm encountering an unexpected token error while trying to change the text color. Any insights on what might be causing this issue?**
function Header() {
return (
<View style={style}>
<Text style={[styles.setFontSize.setColorRed]} React Native Font example </Text>
<header className="header">
<div className="col1">
</div>
<div className="col2">
<div className="menu">
<h3>About</h3>
<h3>Cars</h3>
<h3>Contact</h3>
<h3>Search</h3>
</div>
</div>
</header>
);
}
export default Header extends Component;
Received this error message:
./src/components/header.js Line 10:78: Parsing error: Unexpected token return ( <View style={style}> <Text style={[styles.setFontSize.setColorRed]} React Native Font example </Text> ^ <header className="header"> <div className="col1"> </div