Coder Social home page Coder Social logo

budiadiono / react-native-calculator Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 25.0 256 KB

React Native Calculator and Calculator Input Component

JavaScript 15.47% Shell 1.56% TypeScript 82.97%
calculator component input react react-native react-native-calculator

react-native-calculator's People

Contributors

bellini666 avatar budiadiono avatar michaellambs avatar wesleyfaveri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-native-calculator's Issues

No display text

Hello, tx for your work. I'm trying to implement this lib in my project, and no matter what I do, I get no visible text in display. Value is handled well as it is outputed in onAccept function, however I cannot see anything in the display part of the widget. I tried passing "black" to the displayColor prop, along with "white" to the displayBackgroundColor, changing the size of the widget (fixed size, flex, fullscreen), nothing will work. I'm using it in RN 0.64.2 android for now.

image

not working

I love this calculator keyboard; thanks for making it!

I'm trying to use the calculator keyboard in a react-native iOS app, and it's all drawing correctly but none of the calculator's text shows up, and the on change events aren't firing either. I haven't had a chance to investigate further. Do you know what might be happening?

Hitting decimal button after Action button NaN.

First off great tool!

using - version: 0.5.0

I wanted to point out that if you hit the decimal button after an action button but before a preceding 0. You will get NaN.

Example:
8 + 0.4 = 8.4 - works correctly.
8 + .4 = 8 + Nan. - returns NaN and requires a clear and restart.

So if you do not hit the 0 prior to a decimal after and action button that error will occur.

I am guessing some users will try and hit the decimal without a preceding 0.

Unexpected continuity behavior after completing calculations

When you do a calculation, and get an answer, and then enter something new, it doesn't overwrite what was previously there. Instead, it adds it to the end of the answer. The calculators on the imacs, kindle fire, android, ipads, etc. all overwrite previous answers.

When using the onAccept attribute, it activates the onCalc attribute at the same time, the same happens when I press the equal button it calls the onAccept function, would it have a solution?

When using the onAccept attribute, it activates the onCalc attribute at the same time, the same happens when I press the equal button it calls the onAccept function, would it have a solution?

Example I want it to send me just ready result, so I put 3 + 4, when I press equal (=) it calls the onAccept attribute function that sends these values ​​to my state

Image of Problem
https://ibb.co/x59Nr3m

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.