Get Started

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:

  1. Navigate to the example folder:

    run in terminal
    cd example 
  2. Replace the API key in .env.example with your own keys, then rename the file to .env.

  3. Install the necessary modules:

    run in terminal
    npm install
  4. Start the project with the following command:

    run in terminal
    npx 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