use __UI_USE_EXTERNAL_RENDERER__ to not register all ui components

This commit is contained in:
Martin Guillon
2021-01-06 11:17:44 +01:00
parent 0ef4a37c3b
commit 188f11f53a

View File

@ -4,7 +4,10 @@ import './globals';
// Register "dynamically" loaded module that need to be resolved by the
// XML/component builders.
import * as coreUIModules from './ui/index';
if (__UI_USE_EXTERNAL_RENDERER__) {
} else {
global.registerModule('@nativescript/core/ui', () => coreUIModules);
}
// global.registerModule('text/formatted-string', () => require('./text/formatted-string'));
// global.registerModule('text/span', () => require('./text/span'));