Are you able to provide the minimum code that causes this error?
At the same time, could you try bumping up the react-native version?
Can you also confirm whether our demo, also causes this problem? LINK
Thanks for the quick answer. I created a demo repo and it worked there. After trying some things out I managed to get it up and running in our main application!