Skip to content

Arthur-Noh/react-native-simple-intent-linking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-simple-intent-linking

npm version license: MIT platforms

A lightweight React Native module to easily handle Android intent:// links — typically used to launch other apps like PASS, Kakao, or other deep links.

✅ Supports:

  • Android intent:// links (custom app launch)
  • Fallback to React Native's Linking on iOS
  • Automatic platform handling with clean API

📦 Installation

yarn add react-native-simple-intent-linking

This module is written in Kotlin and supports autolinking (React Native 0.60+).


🚀 Usage

Import the module

import SimpleLinking from 'react-native-simple-intent-linking';

📲 Open an Android Intent URL

await SimpleLinking.openURL(
    'intent://...your_intent_link'
);
  • If the target app is installed, it will be launched.
  • On iOS or non-intent:// links, it will fall back to Linking.openURL.

✅ Check if the intent link is valid

const canOpen = await SimpleLinking.canOpenURL(
  'intent://...your_intent_link'
);

if (canOpen) {
  // You can safely open the link
}

🧩 Platform behavior

Platform Behavior
Android Uses native Kotlin module to handle intent:// schemes via startActivity()
iOS Falls back to Linking.openURL() since intent-style URLs are not used

📄 License

MIT
Developed by Arthur-Noh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published