Slide 33
Slide 33 text
AppRegistry.runApplication(
‘MyApp’,
new
WritableMap());
require(‘AppRegistry’).runApplication(‘MyApp’,
{});
UIManager.createView(2,
’View’,
{…});
UIManager.createView(3,
’Text’,
{…});
UIManager.createView(4,
’View’,
{…});
…
UIManagerModule#createView(2,
‘View’,
…)
View
newView
=
new
View();
UIManagerModule#createView(3,
‘Text’,
…)
TextView
newView
=
new
TextView();
UIManagerModule#createView(4,
‘View’,
…)
View
newView
=
new
View();
…
BRIDGE
[1, 1, [‘MyApp’, {}]]
[[2, 3, [2, ‘View’, {…}]],
[2, 3, [3, ‘Text’, {…}]],
[2, 3, [4, ‘View’, {…}]]]
Java JS