xcarpentier/gifted-chat-web-demo

IMessage & User modules not exported

francoisjacquet opened this issue · 0 comments

Thank you for this great chat.

After installing the web demo using npm install and previously updated the package.json as follows:

    "react-native-gifted-chat": "0.11.3",
    "react-scripts": "3.1.2",

Whe I run npm start I have the following error (same for User):

TypeScript error in gifted-chat-web-demo/src/App.tsx(2,22):
Module '"../node_modules/react-native-gifted-chat/lib"' has no exported member 'IMessage'. Did you mean 'Message'? TS2724

    1 | import React, { useState } from 'react'
  > 2 | import { GiftedChat, IMessage, User } from 'react-native-gifted-chat'
      |                      ^
    3 | import { View, Dimensions } from 'react-native'
    4 | import './App.css'