Skip to content

This Cordova Plugin allows you to use native transitions with JS and Cordova 3.0+. Mind. Blown.

License

Notifications You must be signed in to change notification settings

DanielOchoa/Gojira

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gojira

Update: This project is now deprecated.

This is a Cordova Plugin that allows you to create native transitions with JS thus allowing you to create a multi-page application. In Other words - a hybrid application with native navigation. Mind. Blown.

Usage

This starts the plugin. It will immediately replace the current webView with the one passed as the argument. Loads the file from inside the www directory. It is recomended that you do not remove the loading screen cordova provides until you call this.

gojira.launch('someFile.html');

This stacks a new webview into the current navigation controller.

gojira.newView('someFile.html');

This goes back to the previous view.

gojira.back();

This sends a message from one view to another.

gojira.postMessage({data: 'someData'});

Set this function anywhere to intercept an incoming message.

window.message = function(msg) {
  alert('message received!');
  if(msg.data === 'someData') {
    console.log(msg.data);
  }
}

More magic coming soon!

About

This Cordova Plugin allows you to use native transitions with JS and Cordova 3.0+. Mind. Blown.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published