React Native Troubleshooting

  1. Smallcase SDK keeps loading after successful login
  2. Could not resolve dependency

1) After the broker login/ order placement, the SDK is not returning back to our app.

  • Please add the following activities along with your unique gateway name for the key android:host in the AndroidManifest.xml file:
<activity android:name="com.smallcase.gateway.screens.transaction.activity.TransactionProcessActivity"
          android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.BROWSABLE" />
        <category android:name="android.intent.category.DEFAULT" />
        <data
            android:host="<YOUR_GATEWAY_NAME>"
            android:scheme="scgateway"
        />
    </intent-filter>
</activity>

<activity android:name="com.smallcase.gateway.screens.common.RedirectActivity"
          android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.BROWSABLE" />
        <category android:name="android.intent.category.DEFAULT" />
        <data
            android:host="<YOUR_GATEWAY_NAME>"
            android:scheme="scgatewayredirect"
        />
    </intent-filter>
</activity>

If the issue still persists, please mail us at [email protected] with a screen recording of the event. This will help us investigate the issue on our end.

2) Could not resolve dependency, ERR! peer react@"^16.8.1" from [email protected]

  • npm install react-native-smallcase-gateway --legacy-peer-deps should resolve the issue.