Skip to content

On Mac Catalyst, using KeyboardAwareScrollView causes abnormal crashes. #1454

@dppo

Description

@dppo

In React Native v0.85.3, when using KeyboardAwareScrollView together with TextInput, both tapping the TextInput and tapping the close button in native-stack will cause the app to crash unexpectedly. The same code works normally in React Native v0.83.

Since the default React Native v0.85.3 setup cannot run directly on Mac Catalyst, I used the workaround mentioned in this issue to make the project run on Mac Catalyst.

pushd ios/Pods/React-Core-prebuilt/React.xcframework/ios-arm64_x86_64-maccatalyst/React.framework
rm -r React Resources
ln -s Versions/Current/Resources Resources
ln -s Versions/Current/React React
pushd Versions && rm -r Current && ln -s A Current && popd
popd

pushd ios/Pods/ReactNativeDependencies/framework/packages/react-native/ReactNativeDependencies.xcframework/ios-arm64_x86_64-maccatalyst/ReactNativeDependencies.framework
rm -r ReactNativeDependencies Resources
ln -s Versions/Current/Resources Resources
ln -s Versions/Current/ReactNativeDependencies ReactNativeDependencies
pushd Versions && rm -r Current && ln -s A Current && popd
mv ReactNativeDependencies_*.bundle Resources
popd
Image Image

Metadata

Metadata

Assignees

Labels

KeyboardAwareScrollView 📜Anything related to KeyboardAwareScrollView componentKeyboardChatScrollView 💬Anything about chat functionalityrepro providedIssue contains reproduction repository/code🍎 iOSiOS specific🎯 crashLibrary triggers a crash of the app

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions