![New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions](https://cdn.sanity.io/images/cgdhsj6q/production/86e6ebdea652d20da070ebbda20134b839972db7-1024x1024.webp?w=800&fit=max&auto=format)
Security News
New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
mobile-navigation-controller
Advanced tools
Readme
It's manager for your pages like mobile app.
I dedicate a considerable amount of my free time to developing and maintaining this plugin, along with my other Open Source software. To help ensure this Cli is kept updated, new features are added and bugfixes are implemented quickly, please donate a couple of dollars (or a little more if you can stretch) as this will help me to afford to dedicate time to its maintenance. Please consider donating if you're using this plugin in an app that makes you money, if you're being paid to make the app, if you're asking for new features or priority bug fixes.
import Navigator from 'mobile-navigation-controller';
<Navigator onRef={ref => (this.navigatorRef = ref)} >
<MyHomePage key="home" levelPage={0} />
<AboutPage key="about"
levelPage={1}
transitionIn="fadeInRight"
transitionOut= "fadeOutLeft"
/>
</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 = { animatioPageIn:"fadeInRight" // have defult
, animationPageOut:"fadeOutLeft" // 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) => { ... } |
changeRoute | boolean | optional | true (on cordova native platforms => false) | Determines whether to change the URL to the component key |
homePageKey | string | optional | The key of the first child |
prop | type | required | defult | node |
---|---|---|---|---|
levelPage | integer | required | - | important! |
backgroundColor | string | optional | #fff | |
height | string or integer | optional | "100%" | |
backOnSwipeRight | boolean | optional | false | May be problematic with css "padding-left" |
transitionIn | string | optional | - | |
transitionOut | string | optional | - | |
animationTimeInMS | integer | optional | - | |
kill | boolean | optional | - | |
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 7 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
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
Security News
Results from the 2023 State of JavaScript Survey highlight key trends, including Vite's dominance, rising TypeScript adoption, and the enduring popularity of React. Discover more insights on developer preferences and technology usage.
Security News
The US Justice Department has penalized two consulting firms $11.3 million for failing to meet cybersecurity requirements on federally funded projects, emphasizing strict enforcement to protect sensitive government data.