Getting Started
Here's a simple example built with ReactGenie:
demo.ts
import React, { Component } from 'react'
import MyComponent from 'reactgenie-lib'
class Example extends Component {
render() {
return <MyComponent />
}
}The ReactGenie library provides a counter example for multimodal interaction, which can be deployed as follows:
-
Navigate to the
examplefolder:run in terminalcd example -
Replace the API key in
.env.examplewith your own keys, then rename the file to.env. -
Install the necessary modules:
run in terminalnpm install -
Start the project with the following command:
run in terminalnpx expo start --web
Alternatively, you can start the project by linking the library locally with this command:
run in terminal
if [ -d "./node_modules/reactgenie-lib" ]; then rm -r ./node_modules/reactgenie-lib; fi && npm install --install-links && npx expo start --web