I saw this tutorial before: How to Run PyTorch Models in the Browser With ONNX.js - YouTube
This tutorial said if we use ONNX, we need to be careful on ONNX because it may fail in certain cases and we need to test it.
If you have used ONNX or other way to make the question and answering to work on React Native or other stuff, please free feel to share it.
Thank you for answering.
ONNX doc for hugging face: Exporting transformers models