GithubHelp home page GithubHelp logo

tpabarbosa / react-native-flashlight Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 796 KB

This project is an Android app that was made as a challenge from the bootcamp Decola Tech 3ª Edição - DIO - Avanade Brasil. It is a flashlight with some extra functions

JavaScript 48.24% Ruby 1.82% Starlark 0.76% Java 19.37% Makefile 1.92% C++ 8.77% CSS 6.79% HTML 4.73% Objective-C 3.01% Objective-C++ 4.59%
android flashlight react-native torch

react-native-flashlight's Introduction

React-Native Flashlight

This project is an Android app that was made as a challenge from the bootcamp Decola Tech 3ª Edição - DIO - Avanade Brasil. It is a flashlight with some extra functions:

  • Torch mode, where light is on

  • Camera mode, where light is on and users can take photos and also access than from smartphone gallery

  • SOS mode, where light blinks an SOS morse code (. . .,- - -,. . .)

  • Stroboscope mode, where light blinks in an adjustable frequency, between 0Hz and 10Hz

  • Screen Only mode, where light is off, screen brigthness is set to maximum and users can choose screen color

  • Shake to turn on and off, when app is in Torch, SOS or Stroboscope mode

image1 image2

Dependencies

Drawbacks

This app was not tested in IOS, some adjusts will be necessary if you want to run it in that platform.

SOS and Stroboscope mode change to Torch mode when application is running in background. This happens because they were coded using setInterval and setTimeout that stop running when app is not in foreground.

Camera mode lights off when application is running in background. This happens because light is attached to camera, and, to save battery, camera gets in standy by when it is not in foreground.

Permissions requests may not work properly, I did not put big efforts in it yet.

Todo

  • add slider to adjust brightness when app is in Screen Only mode

  • add custom colors to Screen Only mode

  • add Screen Only With Stroboscope mode

  • improve how Camera mode handles photos that were taken

  • improve Camera mode life cicle to change to Torch mode before app goes into background

  • add new dependency React Native Background Timer to prevent SOS and Stroboscope mode to stop when app is in background

  • improve permissions verifications and requests

react-native-flashlight's People

Contributors

tpabarbosa avatar

Stargazers

 avatar

Watchers

 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.