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 {
StyleSheet,
ActivityIndicator,
View
} from 'react-native';
export const ActivitySpinner = ({isBusy}) => {
return (
<View>
<ActivityIndicator style={{position : 'absolute', left: 0,
right: 0, top: 0, bottom: 0, alignItems: 'center',justifyContent: 'center'}}
animating={isBusy} color = '#0a1640' size = "large" />
</View>
);
};
All i need to to was add
import React, {Component} from 'react';
Comments