react-native-gleam 1.0.0-beta.4 → 1.0.0-beta.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/ios/GleamView.mm +3 -3
  2. package/package.json +1 -1
package/ios/GleamView.mm CHANGED
@@ -128,8 +128,8 @@ static void _unregisterView(GleamView *view) {
128
128
  - (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index
129
129
  {
130
130
  [super mountChildComponentView:childComponentView index:index];
131
- if (_loading) {
132
- childComponentView.alpha = 0.0;
131
+ if (_loading || _isTransitioning) {
132
+ childComponentView.alpha = _contentAlpha;
133
133
  }
134
134
  }
135
135
 
@@ -405,7 +405,7 @@ static void _unregisterView(GleamView *view) {
405
405
  if (shouldAnimate) {
406
406
  _isTransitioning = YES;
407
407
  _transitionElapsed = 0.0;
408
- // Clock stays registered to drive the transition
408
+ [self _registerClock];
409
409
  } else {
410
410
  [self _unregisterClock];
411
411
  [self _setChildrenAlpha:1.0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-gleam",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.4.2",
4
4
  "description": "Native-powered shimmer loading effect for React Native",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",