Code Monkey home page Code Monkey logo

thorwallet-react-native's Introduction

Official THORWallet ⚡️

The official wallet app for the THORChain community. Built with React-Native.

thorwallet

▶️ Usage

Prerequisites

To work with React Native, you will need to have an understanding of JavaScript fundamentals.

  • Mac OS
  • Install xcode 9.4+
  • Install node 8.3+
  • Install JDK 8

Install

In case you don't have cocoapods installed, run:

sudo gem install cocoapods

And then run within the project root

yarn && cd ios && pod install

Open xcode and the following file: ios/thorwallet.xcworkspace

Start the iOS app

npx react-native run-ios

or simply press the play button on your xcode project.

💻 Contributing

Follow style conventions and folder structure. If you want to actively contribute get in touch with [email protected] or [email protected] for being updated on our roadmap and feature list. Any help is more than welcome!

Folder structure

  • assets

    • Any kind of assets (such as svgs , fonts, images, etc.)
    • Lottie animations are supported only if exported as .json files
  • clients

    • Entry point for @xchainjs. Each chain client is exposed as single file in the following format: Yourclient.ts
    • A higher react hook exposes and clusters all clients together through the whole app. The hook is already memoized and reacts on network or seed phrase changes. See hook useChainClient.ts in MultiChainClient.ts
  • components

    • This folder contains any kind of React components in the following format: Yourcomponent.tsx
    • Managers
      • Components which do not render anything (return null) but have some core logic within useEffects()
    • Screens
      • Final screens which get rendered and passed as props to navigators.
  • helpers

    • Utility functions or utility hooks in the following format: your-helper-function.ts
  • navigation

    • Navigation components which render screens and handle navigation logic. Entry point is DrawerNavigator.tsx
  • store

    • Global states shared among the whole app. For each new state instance, create a new folder (YourFolder) and a file in the following format: yourfolder-state.ts
    • Based on the complexity of your state instance, you can either use redux or react-hooks-global-state
  • types

    • Typescript files which declare new types. These types are then imported and used everywhere. Format: your-new-type.ts
  • ui

    • UI components with tho main folders:
      • core
        • Core and fundamental UI components for THORWallet in the following format: YourUIComponent.tsx. This folder contains components such as Button.tsx, Input.tsx, Flex.tsx, Spacer.tsx, Checkbox.tsx . These components are exposed with simple APIs through typed props.
      • theme
        • Core theme for THORWallet. This folder includes files such as colors.ts, fonts.ts, etc.

🔖 License

This project is MPL licensed.

thorwallet-react-native's People

Contributors

lucaspelloni2 avatar severinwullschleger avatar tbocek 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.