GithubHelp home page GithubHelp logo

jtara1 / base_converter Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 2.46 MB

React native app that allows user to convert numbers of one base to another base

License: MIT License

JavaScript 100.00%
react-native base-conversion mobile-app

base_converter's Introduction

 ________________________________________________________
/\                                                       \
\_|  _   _      _ _                             _     _  |
  | | | | | ___| | | ___    __      _____  _ __| | __| | |
  | | |_| |/ _ \ | |/ _ \   \ \ /\ / / _ \| '__| |/ _` | |
  | |  _  |  __/ | | (_) |   \ V  V / (_) | |  | | (_| | |
  | |_| |_|\___|_|_|\___( )   \_/\_/ \___/|_|  |_|\__,_| |
  |                     |/                               |
  |   ___________________________________________________|_
   \_/_____________________________________________________/

My Most Used Languages in Public Repos

base_converter's People

Contributors

jtara1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

base_converter's Issues

All values refer to the instance of NumberInputView where this.props.numberBase === 16

Possible Problems:

  • I'm not getting the reference to the object that's being creating here my method of using a global variable JS object as a dict to hold integer keys that point to the reference of the instance defined as this in inputViews[this.props.numberBase] = this; is working as intended
        <NumberInputView
          label={"bin"}
          numberBase={2}
        />
  • this might be a logic error in my use of adding function to onChangeText event within TextInput component. no, infinite recursion is not occurring here

Possible Solutions:

  1. figure out this.refs, an attribute inherited from Component
  2. figure out how to pass by reference in JS

I shouldn't need to explicitly define the property, label, in NumberInputView

It should be implied by the numberBase property value.

Later, I can do "Base " + this.props.numberBase for KeyError / undefined access attempts to labels object.

    let labels = {
      2: "Bin",
      8: "Oct",
      10: "Dec",
      16: "Hex",
    };    
    props["label"] = labels[props.numberBase];

So I want to be able to removed the label prop

        <NumberInputView
          label={"Bin"}
          numberBase={2}
        />

current attempts seem to make props["label"] === ""

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.