diff --git a/babel.config.js b/babel.config.js
index f842b77..1be3da9 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,3 +1,4 @@
module.exports = {
- presets: ['module:metro-react-native-babel-preset'],
+ presets: [['module:metro-react-native-babel-preset', {useTransformReactJSXExperimental:true}]],
+ plugins: [['@babel/plugin-transform-react-jsx', { runtime: 'classic' }]]
};
diff --git a/package.json b/package.json
index ac19ffa..f3c7bca 100644
--- a/package.json
+++ b/package.json
@@ -21,6 +21,7 @@
"react": "18.2.0",
"react-native": "0.71.0",
"react-native-markdown-display": "^7.0.0-alpha.2",
+ "react-native-svg": "^13.9.0",
"react-native-syntax-highlighter": "^2.1.0",
"react-native-windows": "0.71.1"
},
diff --git a/src/Chat.tsx b/src/Chat.tsx
index 4f52245..26ddf0c 100644
--- a/src/Chat.tsx
+++ b/src/Chat.tsx
@@ -1,6 +1,5 @@
import React from 'react';
import {
- Button,
ScrollView,
TextInput,
View,
@@ -15,6 +14,7 @@ import {
} from './Feedback';
import { PopupsContext } from './Popups';
import { HoverButton } from './Controls';
+import { ButtonV1 as Button } from '@fluentui/react-native';
enum ChatSource {
Human,
@@ -86,13 +86,15 @@ function ChatEntry({submit, defaultText, clearConversation}: ChatEntryProps): JS
onSubmitEditing={submitValue}
value={defaultText ?? value}/>
);
}
@@ -170,11 +172,10 @@ function Chat({entries, humanText, onPrompt, clearConversation}: ChatProps): JSX
}
diff --git a/src/Popups.tsx b/src/Popups.tsx
index 3500773..08de172 100644
--- a/src/Popups.tsx
+++ b/src/Popups.tsx
@@ -5,7 +5,7 @@ import {
} from 'react-native';
import {Popup} from 'react-native-windows';
import {StylesContext} from './Styles';
-import { Button, IFocusable } from '@fluentui/react-native';
+import { ButtonV1 as Button } from '@fluentui/react-native';
type PopupsContextType = {
showAbout: boolean,
@@ -32,12 +32,12 @@ type DialogFrameType = PropsWithChildren<{
function DialogFrame({children, show, close, isLightDismissEnabled, titleIcon, titleIconStyle, title, buttons}: DialogFrameType) {
const styles = React.useContext(StylesContext);
- const populatedButtons = buttons ?? [