rakannimer/react-orchestra

TypeError: undefined is not an object (evaluating '_native.NoteFactory')

albanbleicher opened this issue · 1 comments

Hi,
I'm a beginner with React Native and React Orchestra. I followed every steps for the installation, but I must have missed something because I can't get rid of this error :
IMG_E3B3B0486E70-1

with this code, that i took from the native demo example :

import React from 'react';
import { View, Text } from 'react-native';
import { NoteFactory } from 'react-orchestra/native';

const renderNote = (instrumentName, noteName) =>{
  // console.warn('rendering '+instrumentName, noteName);
  return (<View><Text> I am a note : {instrumentName} {noteName} You can click me ! </Text></View>);
}
class NoteFactoryExample extends React.Component {
  render() {
    // console.warn(JSON.stringify(Object.keys(a), 2, 2));
    return (
      <NoteFactory
        type="scale"
        scaleName="ionian"
        noteName="C"
        instrumentName="acoustic_grand_piano"
        startOctave="3"
        octaveCount="1"
        renderNote={renderNote}
      />
    );
  }
}
export default NoteFactoryExample;

If you have any hint ?
Sorry if this is a silly question :/

Regards

This issue, is I don't know how, gone :/ Sorry for disturbing