Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expo upgrade to 51 #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion wownar-react-native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ Open new terminal
```bash
cp .env.example .env
```
- Edit `.env` to add your `COMPUTER_IP_ADDRESS`. Refer [find-IP-address article](https://www.avg.com/en/signal/find-ip-address) to get IP address of your Computer
- Edit `.env` to add your `COMPUTER_IP_ADDRESS`
- Protip - If running locally, start the server first and use the displayed IP address in your client code's .env
- Refer [find-IP-address article](https://www.avg.com/en/signal/find-ip-address) to get IP address of your Computer

4. **Start the app**: (Make sure your phone and computer is connected to the same network)

Expand Down
3 changes: 3 additions & 0 deletions wownar-react-native/client/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ export default ({ config }: any) => {
extra: {
COMPUTER_IP_ADDRESS: process.env.COMPUTER_IP_ADDRESS,
},
plugins: [
"expo-secure-store"
]
};
};
21 changes: 11 additions & 10 deletions wownar-react-native/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,28 @@
"web": "expo start --web"
},
"dependencies": {
"@coinbase/coinbase-sdk": "^4.0.4",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be able to downgrade to v0.2.0? That's the latest version I see on npm

"@neynar/react-native-signin": "^1.3.0",
"@react-navigation/native": "^6.1.9",
"@react-navigation/native-stack": "^6.9.17",
"@types/ip": "^1.1.3",
"dotenv": "^16.3.1",
"expo": "~49.0.15",
"expo-constants": "~14.4.2",
"expo-secure-store": "~12.3.1",
"expo-status-bar": "~1.6.0",
"expo": "^51.0.31",
"expo-constants": "~16.0.2",
"expo-secure-store": "~13.0.2",
"expo-status-bar": "~1.12.1",
"react": "18.2.0",
"react-native": "0.72.6",
"react-native": "0.74.5",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-paper": "^5.12.1",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "^3.29.0",
"react-native-safe-area-context": "4.10.5",
"react-native-screens": "3.31.1",
"react-native-svg": "^15.2.0",
"react-native-webview": "^13.6.4"
"react-native-webview": "13.8.6"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@types/react": "~18.2.14",
"@babel/core": "^7.24.0",
"@types/react": "~18.2.79",
"typescript": "^5.1.3"
},
"private": true
Expand Down
5,008 changes: 2,669 additions & 2,339 deletions wownar-react-native/client/yarn.lock

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions wownar-react-native/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const {
} = require("@neynar/nodejs-sdk");
var { json } = require("body-parser");
require("dotenv").config({ path: ".env" });
const os = require('os');

const app = express();

Expand Down Expand Up @@ -70,6 +71,14 @@ app.post("/cast", async (req, res) => {
});

const PORT = 5500;
app.listen(PORT, () => {
console.log(`Server listening on port ${PORT}`);
});
const server = app.listen(PORT, () => {
const networkInterfaces = os.networkInterfaces();
for (const interfaceName in networkInterfaces) {
const addresses = networkInterfaces[interfaceName];
for (const address of addresses) {
if (address.family === 'IPv4' && !address.internal) {
console.log(`Server running at http://${address.address}:${PORT}/`);
}
}
}
});
Loading