react-native-curved-bottom-bar icon indicating copy to clipboard operation
react-native-curved-bottom-bar copied to clipboard

[Android] Shadow issue on Expo

Open alexandermirzoyan opened this issue 2 years ago • 5 comments

On latest version getting error at <ShadowView /> component. Location - /node_modules/react-native-curved-bottom-bar/src/CurvedBottomBar/components/ShadowView/index.tsx

export const CurvedBottomBarView =
  Platform.OS === 'android'
    ? UIManager.getViewManagerConfig(ComponentName) != null
      ? requireNativeComponent<CurvedBottomBarProps>(ComponentName)
      : () => {
          throw new Error(LINKING_ERROR);
        }
    : View;

If I am replacing the error return part with simple View. The error is being resolved but shadows are not working on android.

image

alexandermirzoyan avatar Apr 16 '23 13:04 alexandermirzoyan

+1

mikkelbelchuke avatar Jun 16 '23 09:06 mikkelbelchuke

If you're on expo, you should be using the expo component. CurvedBottomBarExpo

julekgwa avatar Jun 23 '23 10:06 julekgwa

In that case my shadowStyle property does not recognize on Android. I am checking on Android depend on elevation style property.

alexandermirzoyan avatar Jun 25 '23 08:06 alexandermirzoyan

+1

kbqdev avatar Jun 29 '23 08:06 kbqdev