mirror of
https://github.com/zhigang1992/react-native-chat-ui.git
synced 2026-01-12 22:50:15 +08:00
* Update types and corresponding properties (#27) * Update types and corresponding properties * Change authorId to author object * Fixes after PR Co-authored-by: Alex Demchenko <alexdemchenko@yahoo.com> * Update utils * Add onMessagePRess and disableImageGallery * Change message types * Change onMessagePress * Change Message and tests * Add excludeInitialMessage * Fixes after PR Co-authored-by: vdanylov <vitaliidanylov1992@gmail.com>
example
Getting Started
yarn
for iOS:
npx pod-install
To run the app use:
yarn ios
or
yarn android
Updating project
- Check if there are major versions of 3rd party dependencies, update and commit these changes first
- Remove current
exampleproject - Create a project named
exampleusing react-native-better-template - Revert
README.mdso you can see this guide - In
tsconfig.jsonadd
"baseUrl": ".",
"paths": {
"@flyerhq/react-native-chat-ui": ["../src"]
},
"resolveJsonModule": true,
- In
package.jsonscripts section add
"generate-messages": "node scripts/generateMessages.js",
"prepare": "yarn generate-messages",
- Check the difference in
metro.config.jsand combine all - Revert
srcfolder - Revert
scriptsfolder - Revert
index.js - Check the difference in
.gitignoreand combine all - Check the difference in
.eslintrc.jsand combine all - Install all missing dependencies
- Check the difference in
Info.plistand combine all - Open Xcode and change build number from 1 to 2 and back in the UI, so Xcode will format
*.pbxprojeliminating some changes