usePermission
fun ComponentScope.usePermission(permission: String, onReceivePermissionResult: (Boolean) -> Unit? = null): PermissionState
Litho Hook to request and observe the status of a permission. The API returns a PermissionState which can be used to request the permission if it is not granted. The PermissionState.status will be the PermissionStatus of the permission when the render function is called; this is to ensure race conditions and tearing.
Check rules for hooks