Skip to content

Commit

Permalink
fix expo go android
Browse files Browse the repository at this point in the history
  • Loading branch information
MSghais committed May 15, 2024
1 parent 77f0da7 commit 432c0a7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
1 change: 0 additions & 1 deletion JoyboyCommunity/app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"expo": {
"entryPoint": "node_modules/expo/AppEntry.js",
"name": "JoyboyCommunity",
"slug": "JoyboyCommunity",
"version": "1.0.0",
Expand Down
10 changes: 4 additions & 6 deletions JoyboyCommunity/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { AppRegistry } from 'react-native';
import App from './App';
import { expo } from './app.json';

AppRegistry.registerComponent(expo?.name, () => App);
registerRootComponent(App);
import registerRootComponent from "expo/build/launch/registerRootComponent";
import "fast-text-encoding";
import App from './App.tsx';
registerRootComponent(App);
4 changes: 3 additions & 1 deletion JoyboyCommunity/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion JoyboyCommunity/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "JoyboyCommunity",
"version": "1.0.0",
"entryPoint": "node_modules/expo/AppEntry.js",
"main": "index.js",
"scripts": {
"start": "expo start",
"start:dev": "expo start --tunnel",
Expand Down Expand Up @@ -38,6 +38,7 @@
"@types/react-native": "^0.73.0",
"react-native-dotenv": "^3.4.11",
"typescript": "^5.4.5",
"react-native-keychain": "^8.2.0",
"fast-text-encoding": "^1.0.6"
},
"private": true
Expand Down
2 changes: 1 addition & 1 deletion JoyboyCommunity/src/hooks/keychain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const generatePassword = async (username:string, password:string ) => {
// Function to check if biometric authentication is supported
export const isBiometrySupported = async () => {
try {
const biometryType = await Keychain?.getSupportedBiometryType();
const biometryType = await Keychain.getSupportedBiometryType();
console.log("getSupportedBiometryType", biometryType);
alert(biometryType);
return !!biometryType;
Expand Down

0 comments on commit 432c0a7

Please sign in to comment.