react-native-safe-area-context
react-native-safe-area-context copied to clipboard
WindowInsets.getRoundedCorner ja possible?
Can the library get WindowInsets.getRoundedCorner (int position)? https://developer.android.com/develop/ui/views/theming/rounded-corners
Useful for e.g. introducing routing transition animations with rounded view edges. If it is possible to obtain these values with this library?
It is not currently implemented, but it could be possible to add there values.
It is not currently implemented, but it could be possible to add there values.
how to do it?
I think it could be added here https://github.com/th3rdwave/react-native-safe-area-context/blob/main/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextModule.kt#L25. Feel free to have a look and open a PR to add it. If not I can try to have a look in the next few weeks.
This library might also be a better option if you are willing to contribute the android implementation. https://github.com/mrousavy/react-native-screen-corner-radius/blob/master/README.md
Agree - it's only a well defined thing on iOS, which gives you an accurate bezier path of the corner. Makes sense to have an iOS-only library handle this
I'll close this unless someone feels very strongly it should be in this library