HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
Documentation

React Native Luciq Migration

Overview

This migration renames the entire SDK from "Instabug" to "Luciq" while maintaining all existing functionality. The changes include:

  • Package name: instabug-reactnative@luciq/react-native
  • All class names, methods, and constants
  • Native module names and package identifiers

Migration Script

We provide an automated migration script to handle most of the renaming automatically.

Prerequisites

  1. Ensure you have a clean git working directory (no uncommitted changes)
  2. Make sure you’re using Instabug version 16.0.0 or later.
  3. Make sure you're in the root directory of your React Native project

Running the Migration Script

Using the CLI (Recommended)

# Install the package first using NPM
npm install @luciq/react-native

# OR Install using yarn
yarn add @luciq/react-native

# Run the migration script
npx luciq migrate

# For dry run (preview changes without applying them)
npx luciq migrate --dry-run

API Reference Changes

Main Module

Old APINew APINotes
Instabug.init()Luciq.init()Main initialization method
Instabug.setEnabled()Luciq.setEnabled()Enable/disable functionality
Instabug.show()Luciq.show()Show bug reporting UI
Instabug.setUserData()Luciq.setUserData()Set user data
Instabug.identifyUser()Luciq.identifyUser()Identify user
Instabug.logOut()Luciq.logOut()Log out user

Configuration

Old APINew APINotes
InstabugConfigLuciqConfigConfiguration interface
Instabug.invocationEventLuciq.invocationEventInvocation events enum
Instabug.LogLevelLuciq.LogLevelLog level enum
Instabug.ColorThemeLuciq.ColorThemeColor theme enum
IBG_*LCQ_*All prefixed constants in iOS code
IBG_*LUCIQ_*All prefixed constants in Android

Native Module Names

PlatformOld NameNew Name
AndroidRNInstabugRNLuciq
iOSRNInstabugRNLuciq

Testing Your Migration

After completing the migration:

  1. Clean and rebuild your project
# React Native
npx react-native clean
npx react-native run-android
npx react-native run-ios

# Expo
expo start --clear
  1. Test core functionality:
    • Initialize the SDK
    • Trigger bug reporting
    • Test crash reporting
    • Verify network logging
    • Check user identification
  2. Verify native integration:
    • Check that native modules are properly linked
    • Verify permissions are correctly configured
    • Test on both Android and iOS

Migration from Instabug Environment Variables

If you were using Instabug environment variables, update them as follows:

Old Instabug VariableNew Luciq VariableNotes
INSTABUG_APP_TOKENLUCIQ_APP_TOKENApp token
INSTABUG_APP_VERSION_NAMELUCIQ_APP_VERSION_NAMEVersion name
INSTABUG_APP_VERSION_CODELUCIQ_APP_VERSION_CODEVersion code
INSTABUG_SOURCEMAPS_UPLOAD_DISABLELUCIQ_SOURCEMAPS_UPLOAD_DISABLEDisable sourcemap upload