Skip to content

Commit 565837f

Browse files
committed
Add cache config in sample app
1 parent 8e551bc commit 565837f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sample/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ export default class MParticleSample extends Component {
177177
// Select attributes based on platform
178178
const attributes = Platform.OS === 'ios' ? iosAttributes : androidAttributes;
179179
console.log(`Platform detected: ${Platform.OS}, using ${Platform.OS === 'ios' ? 'iOS' : 'Android'} attributes:`, attributes);
180-
const config = MParticle.Rokt.createRoktConfig('system')
180+
const cacheConfig = MParticle.Rokt.createCacheConfig(30, attributes);
181+
const config = MParticle.Rokt.createRoktConfig('system', cacheConfig);
181182
const placeholderMap = {
182183
'Location1': findNodeHandle(this.placeholder1.current),
183184
}

0 commit comments

Comments
 (0)