Coder Social home page Coder Social logo

nativescript-swiss-army-knife's Introduction

nativescript-swiss-army-knife

A repo for all those functions you copy and paste between projects.

#Common Functions pluckChildViewsFromLayout accepts any layout and removes all it's child views and returns them in an array.

getScreenHeight returns an object of type IScreenHeight with the properties portrait and landscape dimensions.

  • ActionBar Utilities

actionBarSetTitle Programmatically set title on ActionBar

actionBarAddButton Programmatically add button to the ActionBar

actionBarClearButtons Programmatically remove all buttons from the ActionBar

#Android specific functions setAndroidStatusBarTranslucentFlag sets the Android statusbar to translucent Android Documentation

resetAndroidStatusBarTranslucentFlag resets the Translucent Android statusbar flag.

setAndroidNavBarTranslucentFlag sets the Android navigation bar to translucent Android Documentaion

resetAndroidNavBarTranslucentFlag resets the Translucent Android navigation bar flag.

#iOS specific functions

actionBarHideBackButton Programmatically hide the back button from the ActionBar

actionBarSetStatusBarStyle Programmatically remove all buttons from the ActionBar

###Plugin Development Work Flow:

  • Clone repository to your machine.
  • Run npm run setup to prepare the demo project
  • Build with npm run build
  • Run and deploy to your device or emulator with npm run demo.android or npm run demo.ios

##Contributing guidelines Contributing guidelines

MIT

for {N} version 2.0.0+

nativescript-swiss-army-knife's People

Contributors

bradmartin avatar joshdsommer avatar nathanwalker avatar theoriginaljosh avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.