Skip to content

Commit 6bd22c9

Browse files
committed
updated CosyncJWT Expo
1 parent a8db832 commit 6bd22c9

File tree

5 files changed

+84
-5
lines changed

5 files changed

+84
-5
lines changed

CosyncJWT/CosyncJWTExpo/components/AppNav.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
//
2+
// AppNav.js
3+
// CosyncJWTExpo
4+
//
5+
// Licensed to the Apache Software Foundation (ASF) under one
6+
// or more contributor license agreements. See the NOTICE file
7+
// distributed with this work for additional information
8+
// regarding copyright ownership. The ASF licenses this file
9+
// to you under the Apache License, Version 2.0 (the
10+
// "License"); you may not use this file except in compliance
11+
// with the License. You may obtain a copy of the License at
12+
//
13+
// http://www.apache.org/licenses/LICENSE-2.0
14+
//
15+
// Unless required by applicable law or agreed to in writing,
16+
// software distributed under the License is distributed on an
17+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18+
// KIND, either express or implied. See the License for the
19+
// specific language governing permissions and limitations
20+
// under the License.
21+
//
22+
// Created by Tola Voeung.
23+
// Copyright © 2022 cosync. All rights reserved.
24+
//
25+
26+
127

228
import React, { useContext } from 'react';
329
import { NavigationContainer } from '@react-navigation/native';

CosyncJWT/CosyncJWTExpo/components/CircularProgressBar.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
13
import React, { useEffect } from 'react';
24
import { View, StyleSheet, Animated, Easing } from 'react-native';
35
import PropTypes from 'prop-types';

CosyncJWT/CosyncJWTExpo/context/AuthContext.js

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,35 @@
11

2+
//
3+
// AuthContext.js
4+
// CosyncJWTExpo
5+
//
6+
// Licensed to the Apache Software Foundation (ASF) under one
7+
// or more contributor license agreements. See the NOTICE file
8+
// distributed with this work for additional information
9+
// regarding copyright ownership. The ASF licenses this file
10+
// to you under the Apache License, Version 2.0 (the
11+
// "License"); you may not use this file except in compliance
12+
// with the License. You may obtain a copy of the License at
13+
//
14+
// http://www.apache.org/licenses/LICENSE-2.0
15+
//
16+
// Unless required by applicable law or agreed to in writing,
17+
// software distributed under the License is distributed on an
18+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19+
// KIND, either express or implied. See the License for the
20+
// specific language governing permissions and limitations
21+
// under the License.
22+
//
23+
// Created by Tola Voeung.
24+
// Copyright © 2022 cosync. All rights reserved.
25+
//
26+
27+
28+
229
import React, {createContext, useState, useEffect} from "react"
330
import Configure from '../config/Config';
431
import CosyncJWTReactNative from 'cosync-jwt-react-native';
5-
import uuid from 'react-native-uuid';
6-
import AsyncStorage from "@react-native-async-storage/async-storage";
7-
32+
import uuid from 'react-native-uuid';
833

934
export const AuthContext = createContext();
1035

CosyncJWT/CosyncJWTExpo/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"ios": "expo run:ios",
88
"web": "expo start --web"
99
},
10-
"dependencies": {
11-
"@react-native-async-storage/async-storage": "^1.17.11",
10+
"dependencies": {
1211
"@react-navigation/bottom-tabs": "^6.4.1",
1312
"@react-navigation/native": "^6.0.14",
1413
"@react-navigation/native-stack": "^6.9.2",

CosyncJWT/CosyncJWTExpo/screens/HomeScreen.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
//
2+
// HomeScreen.js
3+
// CosyncJWTExpo
4+
//
5+
// Licensed to the Apache Software Foundation (ASF) under one
6+
// or more contributor license agreements. See the NOTICE file
7+
// distributed with this work for additional information
8+
// regarding copyright ownership. The ASF licenses this file
9+
// to you under the Apache License, Version 2.0 (the
10+
// "License"); you may not use this file except in compliance
11+
// with the License. You may obtain a copy of the License at
12+
//
13+
// http://www.apache.org/licenses/LICENSE-2.0
14+
//
15+
// Unless required by applicable law or agreed to in writing,
16+
// software distributed under the License is distributed on an
17+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18+
// KIND, either express or implied. See the License for the
19+
// specific language governing permissions and limitations
20+
// under the License.
21+
//
22+
// Created by Tola Voeung.
23+
// Copyright © 2022 cosync. All rights reserved.
24+
//
25+
26+
27+
128
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
229
import PasswordScreen from './PasswordScreen';
330
import ProfileScreen from './ProfileScreen';

0 commit comments

Comments
 (0)