Export language

This commit is contained in:
kn 2019-01-14 07:39:03 -08:00
parent d633b1ac6c
commit 60338ff304
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -13,3 +13,5 @@ Desktop.ini
.vscode/
android/build/
*.swp

View File

@ -70,7 +70,7 @@ QList<ModuleMethod*> RNLanguages::methodsToExport() {
}
QVariantMap RNLanguages::constantsToExport() {
return QVariantMap{{"languages", d_ptr->languages()}};
return QVariantMap{{"languages", d_ptr->languages()}, {"language", d_ptr->languages()[0]}};
}
void RNLanguages::setBridge(Bridge* bridge) {