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

Reject invalid command from React Native #343

Draft
wants to merge 1 commit into
base: PRN-92/refactor--remove-rejectpromiseonexceptionblock
Choose a base branch
from

Conversation

krocard
Copy link
Contributor

@krocard krocard commented Dec 5, 2023

@krocard krocard self-assigned this Dec 5, 2023
@krocard krocard force-pushed the PRN-92/refactor--throw-on-invalid-rn-input branch from 27c2e45 to ec281e5 Compare December 5, 2023 16:05
@krocard krocard changed the base branch from PRN-74/refactor--improve-null-safety to PRN-92/refactor--remove-rejectpromiseonexceptionblock December 6, 2023 08:12
fun ReadableMap.toRNStyleConfigWrapperFromPlayerConfig(): RNStyleConfigWrapper? {
return RNStyleConfigWrapper(
fun ReadableMap.toRNStyleConfigWrapperFromPlayerConfig(): RNStyleConfigWrapper? = getMap("styleConfig")?.run {
RNStyleConfigWrapper(
styleConfig = toStyleConfig(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was a silent bug here: toStyleConfig was always returning null as called on the player config.

@krocard krocard changed the title refactor: throw on invalid RN input Throw on invalid command input from React Native Dec 6, 2023
@krocard krocard changed the title Throw on invalid command input from React Native Reject invalid command from React Native Dec 6, 2023
@rolandkakonyi rolandkakonyi deleted the PRN-92/refactor--throw-on-invalid-rn-input branch September 26, 2024 08:02
@rolandkakonyi rolandkakonyi restored the PRN-92/refactor--throw-on-invalid-rn-input branch September 26, 2024 08:04
@rolandkakonyi rolandkakonyi reopened this Sep 26, 2024
@rolandkakonyi
Copy link
Contributor

Oops, deleted branch by accident, restored now!

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.

2 participants