Skip to content

compile error #5

@Rakesh-97

Description

@Rakesh-97

Failed to compile

I got this error in my browser while using this module

./node_modules/react-native-image-overlay/index.js
SyntaxError: /home/choudhary/Documents/exam_scheduler_site/react_site/node_modules/react-native-image-overlay/index.js: Unexpected token (42:6)

  40 | 
  41 |     return (
> 42 |       <ImageBackground
     |       ^
  43 |         source={source}
  44 |         style={[
  45 |           styles.image,

this was my code

class About extends Component{
	render(){
		return(
			<div className = "container">
				<h2> About Us</h2>
				<ImageOverlay
				  source={require('./img_avatar.png')}
				  contentPosition="bottom">
				    <div>
				        <h3>Amelia Edwards</h3>
				        <h3>Kuala Lumpur, Malaysia</h3>
				        <button text="Follow me" />
				    </div>
				</ImageOverlay>
			</div>
		);
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions