tamlyn / react-native-elementary

Use Elementary Audio in your React Native app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-elementary

Use Elementary Audio in your React Native app

This is alpha quality software.

Installation

npm install react-native-elementary

Usage

import { el } from '@elemaudio/core';
import { useRenderer } from 'react-native-elementary';

const MyComponent = () => {
  const { core } = useRenderer();

  if (!core) {
    return <Text>Initialising audio...</Text>;
  }

  return (
    <View>
      <Button
        title="Play"
        onPress={() => core.render(el.cycle(440), el.cycle(441))}
      />
    </View>
  );
};

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

About

Use Elementary Audio in your React Native app

License:MIT License


Languages

Language:C 99.3%Language:Java 0.2%Language:C++ 0.1%Language:Ruby 0.1%Language:Objective-C++ 0.1%Language:Objective-C 0.1%Language:JavaScript 0.1%Language:TypeScript 0.1%Language:Kotlin 0.0%Language:CMake 0.0%Language:Swift 0.0%