/** * @format */ import {AppRegistry} from 'react-native'; import App from './App'; import {name as appName} from './app.json'; import api from './src/api/index'; global.$http = api; AppRegistry.registerComponent(appName, () => App);