Skip to content

Use this module to easily add Android toasts to your Framer JS projects.

Notifications You must be signed in to change notification settings

imaaronjames/Simple-Android-Toast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Simple-Android-Toast

Use this module to easily add Android toasts to your Framer Studio projects.

Installation

  1. Download the androidToast.coffee file.
  2. Create a Framer project and drop androidToast.coffee inside your /modules folder.
  3. Add Android = require 'androidToast' at the top of your document.

Before using this module, make sure to have the font Roboto-Regular installed

Sample Project can be found here.

More info about modules for Framer Studio: FramerJS Docs - Modules

TextLayer

How to use this module

You only need one line of code to make Simple Android Toast work. It looks a little something like this:

    Android.Toast("By default, toasts are one line")

or, if your toast requires more than one line, the code could look like this:

    Android.Toast("If your toast is a little longer, you can make your toast larger", "isTwoLines")

Simple customization

There are two parameters you can change: toastMessage and toastSize

    toastMessage (string) -- This is your message you wish to show

    toastSize (string) -- isTwoLines and isThreeLines will change the height of the toast


That's it! the toast will automatically animate in for you and destroy itself when there it's no longer visible. Simple.

About

Use this module to easily add Android toasts to your Framer JS projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages