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 constants exported from android. #6

Merged
merged 3 commits into from
Dec 21, 2023
Merged

Added constants exported from android. #6

merged 3 commits into from
Dec 21, 2023

Conversation

evan-masseau
Copy link
Contributor

@evan-masseau evan-masseau commented Dec 20, 2023

Started breaking more things out into files
Created a constants file, figure we can also create events.ts, profile.ts etc to store our separate types.

Started breaking more things out into files
@evan-masseau
Copy link
Contributor Author

I dunno what our CI is doing. Maybe lets just force merge this and follow up to fix CI.

EventProperty,
EventType,
} from 'klaviyo-react-native-sdk';
import { multiply } from '../../src/KlaviyoReactNativeSdk';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not forget to delete the example method soon lol

@@ -0,0 +1,29 @@
import { NativeModules, Platform } from 'react-native';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracted this to its own file so that I could import it from index and from constants

@@ -25,11 +41,19 @@ class KlaviyoReactNativeSdkModule internal constructor(private val context: Reac

@ReactMethod
override fun createEvent(event: ReadableMap) {
println(event)
val parsedEvent = event.toHashMap()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just adjusted this so the app functions

@evan-masseau evan-masseau merged commit ea33b00 into main Dec 21, 2023
3 of 5 checks passed
@evan-masseau evan-masseau deleted the ecm/constants branch December 21, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant