MatthewDorner / react-native-songbook

React Native app for viewing music in ABC notation format.
GNU General Public License v3.0
18 stars 4 forks source link

Question/Request: react-native abcjs basic example #6

Closed rpattcorner closed 3 years ago

rpattcorner commented 3 years ago

I'm working on a react-native cross platform app for working musicians as a first react-native project, and would very much like to render some abc to nearly any sort of notation -- nothing as controlled as what you've put together with VexFlow, etc.

When you were just starting this project, did you by any chance happen to prove the concept of abcjs in react-native with a simple one-screen app with minimal dependencies? If so, would you consider sharing it? I'm using expo which hopefully won't matter ...

Even a simple import of the abcjs library seems to create compile errors in react-native, and if it weren't for your project I'd probably conclude abcjs and react-native are not compatable. But clearly they are, because there you are! 👍

In an issue thread on the abcjs site @paulrosen implies that abcjs may not work on react-native because it requires the presence of a DOM to render ... is that why you involved VexFlow, as a strategy to work around the absence of react-native rendering? Or was there another motivation?

rpattcorner commented 3 years ago

Resolved via conversation, much appreciated. FWIW native abcjs requires a DOM but can be accessed in a react-native webview per suggestion.