Conditionally require a NativeScript plugin when only a single platform is supported

Nathan Walker
InstructorNathan Walker

Share this video with your friends

Send Tweet

Sometimes a NativeScript plugin may only support 1 platform (iOS or Android). In these cases, we will want to conditionally require the plugin to ensure we don’t crash the other unsupported platform. Let’s consider view and service level implications for how best to handle these scenarios.