isDestroyed()

isDestroyed()

Returns a boolean to let you know if the react-native-daily-js object has had destroy() called on it. If the instance is destroyed, it can not be re-used.

You can re-use the call object multiple times (a sequence of join(), leave(), join(), etc method calls will work as expected).

But when you are finished with the react-native-daily-js call object, you should call destroy() to free all resources associated with it.

At this point, isDestroyed() will return true and the call instance is no longer considered valid and should not be used.

Starting in react-native-daily-js 0.43.0, using a call instance after calling destroy() on it is not allowed and any attempt will throw an Error in order to help defend against this.