Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions android/src/main/java/io/branch/rnbranch/RNBranchModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -1257,4 +1257,11 @@ public void setDMAParamsForEEA(boolean eeaRegion, boolean adPersonalizationConse
public void validateSDKIntegration() {
IntegrationValidator.validate(mActivity);
}

@ReactMethod
public void setFBAppID(String fbAppID) {
Branch branch = Branch.getInstance();
branch.setFBAppID(fbAppID);
}

}
6 changes: 6 additions & 0 deletions ios/RNBranch.m
Original file line number Diff line number Diff line change
Expand Up @@ -750,4 +750,10 @@ - (CGFloat) colorComponentFrom: (NSString *) string start: (NSUInteger) start le
[[Branch getInstance] validateSDKIntegration];
}

#pragma mark setIdentity
RCT_EXPORT_METHOD(
setFBAppID:(NSString *)fbAppID
) {
}

@end
1 change: 1 addition & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ interface Branch {
setPreInstallPartner: (partner: string) => void;
setDMAParamsForEEA: (eeaRegion: boolean, adPersonalizationConsent: boolean, adUserDataUsageConsent: boolean) => void;
validateSDKIntegration: () => void;
setFBAppID: (fbAppID: string) => void;
}
declare const branch: Branch;
export default branch;
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ class Branch {

validateSDKIntegration = () => {
RNBranch.validateSDKIntegration();
};
};

setFBAppID = (fbAppID) => RNBranch.setFBAppID(fbAppID);
}

const validateParam = (param, paramName) => {
Expand Down