Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Segment alias methods #998

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -143,6 +143,20 @@ public void screenWithProperties(final String screenName, final ReadableMap prop
}
}

@ReactMethod
public void alias(final String newId) {
if (mClient != null) {
mClient.alias(newId);
}
}

@ReactMethod
public void aliasWithOptions(final String newId, final Options options) {
if (mClient != null) {
mClient.alias(newId, options);
}
}

@ReactMethod
public void flush() {
if (mClient != null) {
@@ -82,6 +82,20 @@ @implementation EXSegment
}
}

RCT_EXPORT_METHOD(alias:(NSString *)newId)
{
if (_instance) {
[_instance alias:newId];
}
}

RCT_EXPORT_METHOD(aliasWithOptions:(NSString *)newId, withOptions:(NSDictionary *)options)
{
if (_instance) {
[_instance alias:newId options:options];
}
}

RCT_EXPORT_METHOD(reset)
{
if (_instance) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.