Skip to content

MIDIVal.connect() fails #4

@JamieGoodson

Description

@JamieGoodson

Hi 👋
Calling MIDIVal.connect() results in the following error:

TypeError: Cannot read property 'getMidiDevices' of null
    at connect

The App.tsx:

MIDIVal.configureAccessObject(new ReactNativeMIDIValAccess() as unknown as IMIDIAccess);

export default function App() {
  const [access, setAccess] = useState<IMIDIAccess>();

  console.log(access);

  useEffect(() => {
    MIDIVal.connect().then(setAccess);
  }, []);

  return (
    <View style={styles.container}>
      <Text>Hello, World!</Text>
    </View>
  );
}

Device: iOS
Package: "@midival/react-native": "^0.0.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions