Skip to content

Commit a69736b

Browse files
committed
updated copy right
1 parent d30eb90 commit a69736b

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

CosyncStorage/CosyncStorageReactNative/components/ProgressiveAsset.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,20 @@
2020
// under the License.
2121
//
2222
// Created by Tola Voeung.
23-
// Copyright © 2020 cosync. All rights reserved.
23+
// Copyright © 2022 cosync. All rights reserved.
2424
//
2525

2626
//Import React and Hook we needed
27-
import React, {useRef, useEffect, useState} from 'react';
27+
import React, {useContext, useState} from 'react';
2828

2929
//Import all required component
3030
import { StyleSheet, View, Text, Image, ActivityIndicator,TouchableOpacity } from 'react-native';
3131
import VideoPlayer from './VideoPlayer';
3232
import Sound from 'react-native-sound';
33+
import { AuthContext } from '../context/AuthContext';
3334

3435
const ProgressiveAsset = props => {
35-
36+
const { realmUser } = useContext(AuthContext);
3637
const { item, ...attributes } = props;
3738
let [loading, setLoading] = useState(false);
3839
let [error, setLoadingError] = useState(false);
@@ -49,7 +50,7 @@ const ProgressiveAsset = props => {
4950

5051
let id = asset._id.toString();
5152

52-
global.user.functions.CosyncRefreshAsset(id).then(newAsset => {
53+
realmUser.functions.CosyncRefreshAsset(id).then(newAsset => {
5354

5455
//if(!newAsset || !newAsset._id) setLoadingError(true);
5556
setLoading(false);

CosyncStorage/CosyncStorageReactNative/components/Request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// under the License.
2121
//
2222
// Created by Tola Voeung.
23-
// Copyright © 2020 cosync. All rights reserved.
23+
// Copyright © 2022 cosync. All rights reserved.
2424
//
2525

2626

CosyncStorage/CosyncStorageReactNative/components/UploadFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// under the License.
2121
//
2222
// Created by Tola Voeung.
23-
// Copyright © 2020 cosync. All rights reserved.
23+
// Copyright © 2022 cosync. All rights reserved.
2424
//
2525

2626
//Import React and Hook we needed

CosyncStorage/CosyncStorageReactNative/components/VideoPlayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// under the License.
2121
//
2222
// Created by Tola Voeung.
23-
// Copyright © 2020 cosync. All rights reserved.
23+
// Copyright © 2022 cosync. All rights reserved.
2424
//
2525

2626
import React, { useRef} from 'react';

CosyncStorage/CosyncStorageReactNative/config/Config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// under the License.
2121
//
2222
// Created by Tola Voeung.
23-
// Copyright © 2020 cosync. All rights reserved.
23+
// Copyright © 2022 cosync. All rights reserved.
2424
//
2525

2626
exports.Realm = {

CosyncStorage/CosyncStorageReactNative/config/Schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// under the License.
2121
//
2222
// Created by Tola Voeung.
23-
// Copyright © 2020 cosync. All rights reserved.
23+
// Copyright © 2022 cosync. All rights reserved.
2424
//
2525

2626

CosyncStorage/CosyncStorageReactNative/screens/AssetScreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// under the License.
2121
//
2222
// Created by Tola Voeung.
23-
// Copyright © 2020 cosync. All rights reserved.
23+
// Copyright © 2022 cosync. All rights reserved.
2424
//
2525
// Import React
2626
import React, {useState, useEffect, useContext} from 'react';

0 commit comments

Comments
 (0)