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"
Hi 👋
Calling
MIDIVal.connect()results in the following error:The
App.tsx:Device:
iOSPackage:
"@midival/react-native": "^0.0.2"