Is it your entire codes? or a rest of them? you must add react
and some other stuffs to make that to works. I write below codes for you if you don't have it add them to your project:
import React, {Component} from 'react';
import {
View,
documnet
} from 'react-native';
...
render () {
return(
);
}