2016-09-09 42 views
0

我想解析从iOS的Facebook的反应,本机F8应用程序的结构。React-Native App Structure - registerComponent('F8v2',setup);

的index.ios.js看起来是这样的:

'use strict'; 

const {AppRegistry} = require('react-native'); 
const setup = require('./js/setup'); 

AppRegistry.registerComponent('F8v2', setup); 

我了解并能找到设置文件。但在这种情况下,'F8v2'是什么?这是参考一个文件夹吗?这是参考一个组件(如果是这样,我无法在应用程序中找到它)。感谢您的帮助。

回答

0

这指的是应用程序的名称或应用程序键

static registerComponent(appKey, getComponentFunc) 

检查:AppRegistery