Skip to content

Instantly share code, notes, and snippets.

@callstack-bot
Last active November 3, 2022 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save callstack-bot/4dbbd74a4ddc70cd7d23394f7e111936 to your computer and use it in GitHub Desktop.
Save callstack-bot/4dbbd74a4ddc70cd7d23394f7e111936 to your computer and use it in GitHub Desktop.
- (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &)oldProps
{
const auto &oldScreenProps = *std::static_pointer_cast<const RNCSliderProps>(_props);
const auto &newScreenProps = *std::static_pointer_cast<const RNCSliderProps>(props);
if (oldScreenProps.step != newScreenProps.step) {
slider.step = newScreenProps.step;
}
// Handle only supported props here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment