alik0211/mtproto-core

React Native/Expo Documentation/Support

addreeh opened this issue · 0 comments

Describe the bug
Currently, mtproto does not appear to support React Native or Expo environments. This results in errors when attempting to use the library within a React Native project. Specifically, encountering a "Hermes" error suggests an incompatibility with the JavaScript engine used by React Native.

Expected behavior
Ideally, mtproto would either:

  1. Provide native support for React Native/Expo: This would allow seamless integration of the library into React Native projects without encountering errors.
  2. Offer clear documentation for manual integration: If native support isn't feasible, comprehensive documentation outlining the steps for manual integration within a React Native/Expo project would be immensely helpful.

Context
Library environment: React Native
Library version: latest
Node version: 20LTS

Additional context
The specific error encountered is related to Hermes, the JavaScript engine used by React Native. This suggests a potential incompatibility with the library's current implementation.

Request:
We kindly request that the development team consider one of the following options:

  1. Implement native support for React Native/Expo.
  2. Provide detailed documentation for manual integration within React Native/Expo projects.