What is this?
This is reimagination of React Native in context of Bobril.
It does not use anything from React Native except CSSLayout.
It uses identical naming of basic elements
Differences to Bobril
b.addRoot method can create only fullscreen nodes.
b.style is mandatory for any styling.
There are no classnames, but b.styleDef works (without pseudo classes).
postUpdateDomEverytime are not called at all.
destroy has just 2 parameters (ctx and me). There is no
b.getDomNode, it would have no use.
Built application is compatible with Android 4.4 (API 19) or better. Reason is that 4.4 is first version of Android with Chrome (modern fast browser) inside Webview.
How to start
install bobril-build (or upgrade to latest version)
npm i bobril-build -g
install bobril native plugin to bobril-build
bb plugins -i bb-bobriln-plugin
install JavaJDK and set JAVA_HOME enviromental variable
for example: JAVA_HOME=c:\Program Files\Java\jdk1.8.0_92
install Android SDK and set ANDROID_HOME enviromental variable
for example: ANDROID_HOME=c:\Program Files (x86)\Android\android-sdk\
Inside Manager install: Android SDK Build-tools 24.0.1 and Android 7.0 (API 24) SDK Platform
in empty directory
bb bobriln -init
Shortcut for lazy writters:
bb n -i
start bobril-build in interactive mode
point your browser to http://localhost:8080/bb