I have tried to use primus.io with react-native and they are using Primus.require method wrapper so same lib can work in browser and in node.js. Packager throw error that was not able to find stream module but they have try/catch there with a fallback when stream module is not found. So packager should not preload that script and throw error
Unable to resolve module stream
There is a workaround and I have already created pull request there so it's not that urgent primus/primus#432
sorry if there is same issue already but was not able to find any.