appandflow / appandflow/react-native-transformer-text-input

error build on android using expo react native 0.85

Đang mở
#7 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
178
Fork
5
Merge trung bình
9 giờ 24 phút
Pull request đã merge (30 ngày)
1

Mô tả

### Before submitting a new issue

- [x] I tested using the latest version of the library, as the bug might be already fixed.
- [x] I tested using a [supported version](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md) of react native.
- [x] I checked for possible duplicate issues, with possible answers.

### Bug summary

Hi, I’m running into an Android native build issue when using `react-native-transformer-text-input` with `react-native@0.85.3"` `expo@56` and `react-native-worklets@0.8.3`.

From what I checked with Claude bro, it looks like `react-native-worklets` headers depend on `REACT_NATIVE_MINOR_VERSION` to choose the correct React Native compatibility branch.

I’m not completely sure if this is the correct place to fix it, but I was able to get the build working by resolving the React Native minor version in `android/src/main/jni/CMakeLists.txt` and passing it as a compile definition:

After applying this patch locally, the Android build passes.

Could you please check if this is the right fix for the library, or if there is a better way to forward `REACT_NATIVE_MINOR_VERSION` from React Native / Worklets into this target?

[react-native-transformer-text-input@0.1.0.patch](https://github.com/user-attachments/files/28193777/react-native-transformer-text-input%400.1.0.patch)

### Library version

0.1.0

### Environment info

```shell
"react-native": "^0.85.3",
```

### Steps to reproduce

npx expo prebuild
cd android
./gradlew clean && ./gradlew assembleRelease

### Reproducible example repository

https://github.com/chanphiromsok/expo56-worklet-errors

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.