Skip to content

Commit 1ccd6da

Browse files
authored
chore: update tools and version. (#198)
1 parent a99bf59 commit 1ccd6da

File tree

5 files changed

+15
-19
lines changed

5 files changed

+15
-19
lines changed

examples/conversational-ai/react-native/elevenlabs-conversational-ai-expo-react-native/App.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,14 @@ import type {
1515
ConversationEvent,
1616
Role,
1717
} from "@elevenlabs/react-native";
18-
import {
19-
get_battery_level,
20-
change_brightness,
21-
flash_screen,
22-
} from "./utils/tools";
18+
import { getBatteryLevel, changeBrightness, flashScreen } from "./utils/tools";
2319

2420
const ConversationScreen = () => {
2521
const conversation = useConversation({
2622
clientTools: {
27-
get_battery_level,
28-
change_brightness,
29-
flash_screen,
23+
getBatteryLevel,
24+
changeBrightness,
25+
flashScreen,
3026
},
3127
onConnect: ({ conversationId }: { conversationId: string }) => {
3228
console.log("✅ Connected to conversation", conversationId);

examples/conversational-ai/react-native/elevenlabs-conversational-ai-expo-react-native/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Install dependencies:
2626

2727
`npx expo install @elevenlabs/react-native @livekit/react-native @livekit/react-native-webrtc @config-plugins/react-native-webrtc @livekit/react-native-expo-plugin @livekit/react-native-expo-plugin livekit-client`
2828

29-
Note: If you're running into an issue with peer dependencies, please add a .npmrc file in the root of the project with the following content: `legacy-peer-deps=true`.
29+
Note: If you're running into an issue with peer dependencies, please add a `.npmrc` file in the root of the project with the following content: `legacy-peer-deps=true`.
3030

3131
```bash
3232
npm install

examples/conversational-ai/react-native/elevenlabs-conversational-ai-expo-react-native/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/conversational-ai/react-native/elevenlabs-conversational-ai-expo-react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@config-plugins/react-native-webrtc": "^12.0.0",
13-
"@elevenlabs/react-native": "^0.2.0",
13+
"@elevenlabs/react-native": "^0.2.1",
1414
"@livekit/react-native": "^2.9.0",
1515
"@livekit/react-native-expo-plugin": "^1.0.1",
1616
"@livekit/react-native-webrtc": "^137.0.0",
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as Battery from "expo-battery";
22
import * as Brightness from "expo-brightness";
33

4-
const get_battery_level = async () => {
4+
const getBatteryLevel = async () => {
55
const batteryLevel = await Battery.getBatteryLevelAsync();
66
console.log("batteryLevel", batteryLevel);
77
if (batteryLevel === -1) {
@@ -10,18 +10,18 @@ const get_battery_level = async () => {
1010
return batteryLevel;
1111
};
1212

13-
const change_brightness = ({ brightness }: { brightness: number }) => {
14-
console.log("change_brightness", brightness);
13+
const changeBrightness = ({ brightness }: { brightness: number }) => {
14+
console.log("changeBrightness", brightness);
1515
Brightness.setSystemBrightnessAsync(brightness);
1616
return brightness;
1717
};
1818

19-
const flash_screen = () => {
19+
const flashScreen = () => {
2020
Brightness.setSystemBrightnessAsync(1);
2121
setTimeout(() => {
2222
Brightness.setSystemBrightnessAsync(0);
2323
}, 200);
2424
return "Successfully flashed the screen.";
2525
};
2626

27-
export { get_battery_level, change_brightness, flash_screen };
27+
export { getBatteryLevel, changeBrightness, flashScreen };

0 commit comments

Comments
 (0)