How can I tweak native side of expo modules?

  1. SDK Version: “expo-splash-screen”: “~0.14.1”
  2. Platforms: iOS

Hi, I have a question about how to tweak native side of expo modules.

Purpose

  • I want to implement fade out animation on splash screen removal. So I am thinking about adding obj-c code something like below
[UIView animateWithDuration:0.2
     animations:^{view.alpha = 0.0;}
     completion:^(BOOL finished){ [view removeFromSuperview]; }];

Implementation plan

  1. fork expo-splash-screen
  2. add tweak above
  3. import tweaked library in my project

Problem I

  • When I try to add tweak using Xcode, there’s only header files inside Pods/EXSplashScreen. I wonder where I can find implementation files for tweaking?

Problem II

  • I want to clone expo-splash-screen. But it seems I have to clone whole expo library. If there is any way to tweak only expo-splash-screen, please let me know.

regards

There’s an animated splash screen example in our examples library here that may suit your needs. As I recall, it’s actually implementing a fade out.

1 Like

Thanks!

That is exactly what I wanted!

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.