Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
mobile-navigation-controller
Advanced tools
Navigator for JavaScript mobile app, This will help you to manage your pages history in the app and change pages with animation.
It's manager for your pages like mobile app.
import Navigator from './mobile-navigation-controller';
<Navigator onRef={ref => (this.navigatorRef = ref)} >
<MyHomePage key="home" levelPage={0} />
<AboutPage key="about"
levelPage={1}
/>
</Navigator>
Note: prop levelPage
important to manage the returs (from back button) in the structure of a tree
To change page you get the ref and do:
this.navigatorRef.changePage("about");
the option to changePage it's:
this.navigatorRef.changePage(
goToPage //Required
,{options}// Not requred
);
options => { animationIn:integer // have defult , animationOut:string // have defult , timeAnimationInMS:integer // defult=250(ms) , callbackFun:function , props:{...} }
*animationIn
and animationOut
need name animate from here
*the animate.css includ in this package
prop | type | required | defult | node |
---|---|---|---|---|
onRef | required | - | onRef={ref => (this.navigatorRef = ref)} | |
key | string | required | - | |
height | string or integer | optional | "100%" | |
onChangePage | function | optional | - | (nowPageKey,levelAction) => { ... } |
beforChangePage | function | optional | - | (goToPageKey,levelAction) => { ... } |
homePageKey | string | optional | The key of the first child | (nowPageKey,levelAction) => { ... } |
prop | type | required | defult | node |
---|---|---|---|---|
levelPage | integer | required | - | important! |
backgroundColor | string | optional | #fff | |
height | string or integer | optional | "100%" | |
backOnSwipeRight | boolean | optional | false | Bata version. may be problematic with css "padding-left" |
alwaysLive | boolean | optional | false | Don't kill the child. Life is always in the background |
const nowPage= this.navigatorRef.nowPage;
const historyPages= this.navigatorRef.historyPages();
const listLevelPages= this.navigatorRef.listLevelPages();
this.navigatorRef.back();
or
this.navigatorRef.back({options...});
options => { animationIn:integer // have defult , animationOut:string // have defult , timeAnimationInMS:integer // defult=250(ms) , callbackFun:function , props:{...} }
const navigator_busy= this.navigatorRef.busy;
*busy return boolean
Credit:
Arik Wald
Credit animated:
animate.css -https://daneden.github.io/animate.css/
FAQs
Navigator for JavaScript mobile app, This will help you to manage your pages history in the app and change pages with animation.
The npm package mobile-navigation-controller receives a total of 0 weekly downloads. As such, mobile-navigation-controller popularity was classified as not popular.
We found that mobile-navigation-controller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.