1.0.14 • Published 5 months ago

react-native-chord-charts v1.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

React Native Chord Charts

Introduction

This package allows rendering guitar chord charts as SVG into your react native app. It uses react-native-svg to render the charts.

Screenshots

  • Example G chord chart:

chordchart

Getting started

If you wish you can use the example available here. It's an expo app.

1. Instalation

First run the following commands to instal the package:

# Run this command if you use npm or...
npm i --save react-native-chord-charts

# Run this one if you use yarn
yarn add react-native-chord-charts

2. Basic usage

Import the component and invoke it on TSX section and its all done your component is rendering. Obs. The chord chart is rendered based on chord key example: C, D, G#m...

import { View } from 'react-native';
import ChordChart from 'react-native-chord-charts';

const MyComponent = () => {
  return (
    <View>
      <ChordChart
        key="C"
        color="#000000"
      />
    </View>
  );
};

export default MyComponent;

3. Component available properties

PropertyDefault ValueDescriptionIs Required?
width100Chart widthno
height120Chart heightno
showTuningfalseDisplay the chord keys on svg chartno
tuning'E', 'A', 'D', 'G', 'B', 'E'Intrument tuning (Guitar)no
chordKeyGuitar chord key example: G#myes
color#8257E5Chord chart svg render colorno

Author

Credits

The chord chart component was created based on the component developed in the app mentioned below:

License

This project is licensed under the ISC License. Check the LICENSE file for further details.

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago