budiadiono / react-native-calculator Goto Github PK
View Code? Open in Web Editor NEWReact Native Calculator and Calculator Input Component
React Native Calculator and Calculator Input Component
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.
Can we have a props to change textAlign of display on calculator component? Missing it.
Hi, once a calculation is completed and pressing '=' button, 'confirm' button doesn't show up. And the output of the calculation is not reflected in the text container. For some context, I'm using Calculator input component in a form.
The commas become "off" after deleting some numbers.
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?
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.
i'm having problem on android ,it doesn't show text
i tried it on tablet and real device phone , same issue buttons only work when i do a long Press ! otherwise don't work when i click on it
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?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.