Skip to content

Conversation

vishnumad
Copy link
Contributor

Summary

  • Apply prettier config to match Coinbase style
  • Add polyfills for URL and Buffer which aren't in React Native by default
  • Add native function on Android for getting the intent URL getAndroidIntentUrl
  • Add event emitter for host library actions

How did you test your changes?

"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"trailingComma": "all",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Matches prettier style used by CB internally

},
"dependencies": {
"buffer": "^6.0.3",
"react-native-url-polyfill": "^1.3.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Polyfills URL and Buffer which don't have complete implementations in React Native

@vishnumad vishnumad marked this pull request as ready for review November 19, 2022 02:18
Copy link
Member

@bangtoven bangtoven left a comment

Choose a reason for hiding this comment

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

| SendSuccessResponseEvent
| SendFailureResponseEvent;

const events = new EventEmitter();
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed 9b0a6af

@AMITGOELNY
Copy link
Contributor

Looks mostly good. I would normally advise splitting up any formatting into separate PR, but this is fine for the PR size.

@vishnumad vishnumad requested a review from bangtoven November 21, 2022 21:31
@vishnumad vishnumad merged commit ee5d3b0 into master Nov 21, 2022
@vishnumad vishnumad deleted the vishnu/sdk-events branch November 21, 2022 22:00
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.

3 participants