Skip to content

Commit 1d2a985

Browse files
authored
Merge pull request #59 from contentpass/fix-contentpass-popup
fix: hide children during login / second layer
2 parents 244c3b0 + 1676781 commit 1d2a985

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

packages/react-native-contentpass-ui/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @contentpass/react-native-contentpass-ui
22

3+
## 0.3.1
4+
5+
### Patch Changes
6+
7+
- Fix loading state during login
8+
39
## 0.3.0
410

511
### Minor Changes

packages/react-native-contentpass-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentpass/react-native-contentpass-ui",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Contentpass React Native UI Components",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",

packages/react-native-contentpass-ui/src/components/ContentpassConsentGate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export default function ContentpassConsentGate({
148148
onVisibilityChange,
149149
]);
150150

151-
if (!consentResolved) {
151+
if (!consentResolved || isShowingContentpass || isShowingSecondLayer) {
152152
return (
153153
<View style={styles.loading}>
154154
<ActivityIndicator size="large" />

0 commit comments

Comments
 (0)