Can't find variable: React

Got this message while trying to create a new component and doesn't seem to me how obvious the solution was.

import {
} from 'react-native';

export const ActivitySpinner = ({isBusy}) => {
return (
<ActivityIndicator style={{position : 'absolute', left: 0,
right: 0, top: 0, bottom: 0, alignItems: 'center',justifyContent: 'center'}}
animating={isBusy} color = '#0a1640' size = "large" />

All i need to to was add

import React, {Component} from 'react';


Popular posts from this blog

Solving Sonarqube :- Project was never analyzed. A regular analysis is required before a branch analysis

spark - pyspark reading from excel files