import component from react in react native code example Example: import react import React, { Component } from 'react';