Skip to content
Source
Sign inSign up
Open History to see the last commit

webViewDecelerationRate.ts

4 lines249 Bytes

1import { Platform } from "react-native";
2​
3// react-native-webview on Fabric leaves an unset rate at 0, which UIKit clamps to "fast"; Android crashes on the string.
4export const webViewDecelerationRate = Platform.OS === "ios" ? "normal" : undefined;