Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading the fork to latest #1

Open
wants to merge 903 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
903 commits
Select commit Hold shift + click to select a range
9248498
feat: support iPhone 12 series
abdelmagied94 Dec 10, 2020
7f15d86
feat: add onMessageLayout prop
abdelmagied94 Dec 10, 2020
e9b5a65
fix tsc and snapshot
xcarpentier Feb 17, 2021
ebe366d
feat init rewrite
xcarpentier May 8, 2020
6c74930
fix remove old fashion context from test too
xcarpentier May 8, 2020
2930532
feat remove more old context
xcarpentier May 8, 2020
6c02ec0
feat MessageText FC
xcarpentier May 11, 2020
d87c4ba
RefactorComponents
danielmejiadev Jun 18, 2020
ccd634d
Refactor *Message components to FC
danielmejiadev Jun 19, 2020
260902e
Refactor LoadEarlier component to FC
danielmejiadev Jun 19, 2020
1e790e7
Refactor Composer component to FC
danielmejiadev Jun 19, 2020
e43db2d
Refactor InputToolbar component to FC
danielmejiadev Jun 22, 2020
72dde05
InputToolbar
danielmejiadev Jun 23, 2020
3e06a77
fix: 🐛 InputToolbar import into giftedchat main component
xcarpentier Jun 24, 2020
fb2be17
fix: 🐛 prettier script regexp
xcarpentier Jun 24, 2020
78c8e56
fix: 🐛 prettier glob
xcarpentier Jun 24, 2020
215770b
RFMessageVideo
danielmejiadev Jun 22, 2020
7dc2cb4
RFAvatar
danielmejiadev Jun 22, 2020
deeabc8
Fix prettier comments.
danielmejiadev Jun 24, 2020
b87f028
Refactor QuickReplies component to FC
danielmejiadev Jun 25, 2020
6d93f4a
Update imports for quick replies
danielmejiadev Jun 25, 2020
b253c74
* fix infiniteScroll issue #1928
Mar 4, 2021
a2aa339
fix scroll to bottom button when using voiceover
jlapstra Mar 29, 2021
ea16ea4
fix issue in test app that made Gifted Chat instance inaccessible
jlapstra Mar 29, 2021
03b15c0
Added reference to Day.js Format
apappas1129 Apr 7, 2021
09952a0
chore: upgraded expo sdk to 41
myckhel Apr 23, 2021
9e93798
Update README.md
FaridSafi Jan 7, 2022
3e8abdd
Update README.md
FaridSafi Jan 7, 2022
b1aa871
Update README.md
FaridSafi Jan 10, 2022
a010060
chore(publishing): 🔧 fixed linting and testing
Johan-dutoit Apr 10, 2022
ec35ccd
fix a typo in the readme
mrzachnugent Apr 10, 2022
2d87705
refactor(example): 🔨 move example and dependencies out of main package
Johan-dutoit Apr 13, 2022
a8d0a73
Merge pull request #1775 from FaridSafi/rewrite/functionnal_component
Johan-dutoit Apr 14, 2022
975b44d
Update README.md
Johan-dutoit Apr 14, 2022
22cc6f7
Merge pull request #2176 from mrzachnugent/@zach/typo
Johan-dutoit Apr 14, 2022
259f254
Merge pull request #2030 from apappas1129/patch-1
Johan-dutoit Apr 14, 2022
8689005
refactor(lightbox): 🔨 use v2 instead
Johan-dutoit Apr 17, 2022
44f0d22
Merge pull request #2180 from FaridSafi/refactor/lightbox-v2
Johan-dutoit Apr 17, 2022
4c01591
refactor(general): 🔨 defaults, tests, consistency, et al
Johan-dutoit Apr 17, 2022
f21aa2f
Merge pull request #2184 from FaridSafi/refactor/general
Johan-dutoit Apr 17, 2022
291e006
feat(quickreply): 🌟 add text style
Johan-dutoit Apr 17, 2022
903bc73
Merge pull request #2185 from FaridSafi/GH-2171/quick-reply-text-style
Johan-dutoit Apr 17, 2022
28f1441
chore(example): 🔧 fix gifted chat types
Johan-dutoit Apr 17, 2022
c6be8b2
chore(release): 🔧 1.0.0-beta-3
Johan-dutoit Apr 17, 2022
136b2d9
refactor(context): actionsheet & safeareaview
Apr 19, 2022
19c78d7
Merge pull request #2188 from FaridSafi/refactor/context
Johan-dutoit Apr 19, 2022
edf9a36
refactor(utils): split logging out and export utils
Apr 19, 2022
0ec8c78
Merge pull request #2189 from FaridSafi/refactor/utils
Johan-dutoit Apr 19, 2022
3134d39
Change renderFooter example link
Darex1991 Apr 22, 2022
22ff7de
Update README.md
Johan-dutoit Apr 23, 2022
17e23a4
Merge pull request #2193 from Darex1991/readme-link-fix
Johan-dutoit Apr 23, 2022
94ddd44
fix(types): include bubble on press
Apr 29, 2022
f0b7733
Merge pull request #2196 from FaridSafi/fix/GH-2008
Johan-dutoit Apr 29, 2022
7e4c9ae
chore(publish): 1.0.0-beta-4
Apr 29, 2022
1fed60d
refactor(linking): 🔨 remove react-native-communications and use nativ…
Johan-dutoit May 29, 2022
feadc60
fix(testing): 🐛 add root test id's and update documentation
Johan-dutoit May 29, 2022
70f0643
Merge pull request #2207 from FaridSafi/refactor/linking
Johan-dutoit May 29, 2022
e5d3f3a
Merge pull request #2208 from FaridSafi/fix/GH-1637
Johan-dutoit May 29, 2022
b1bb7ad
v1.0.0
Johan-dutoit May 29, 2022
682b4bb
chore(use-memo-one): update to support react 17
Jun 6, 2022
d40c3bb
Merge pull request #2213 from FaridSafi/GH-2200
Johan-dutoit Jun 6, 2022
23e2196
1.0.1
Jun 9, 2022
f59f7d6
Support renderUsername
minhchienwikipedia Jun 9, 2022
4dffdb4
Fix: QuickReplies component is returning null when shouldComponentDis…
rajatkantinandi Jun 10, 2022
cbb23fa
fix(Composer): fix typo preventing onInputSizeChanged from being called
amerikan Jun 10, 2022
dd419fb
Merge pull request #2217 from rajatkantinandi/fix/quick-replies-hooks…
Johan-dutoit Jun 16, 2022
f377ac0
1.0.2
Johan-dutoit Jun 16, 2022
b973f7c
fixed react-native-safe-area-context dependency
Jul 6, 2022
380623f
Merge pull request #2234 from monahans/master
Johan-dutoit Jul 14, 2022
d96d58a
1.0.3
Johan-dutoit Jul 14, 2022
85bb5f1
Fix: allow custom message type TMessage for quickReply props similar …
rajatkantinandi Jul 14, 2022
8a8c898
Merge pull request #2218 from amerikan/master
Johan-dutoit Jul 15, 2022
e5514ba
Merge pull request #2241 from rajatkantinandi/fix/quick-reply-props-c…
Johan-dutoit Jul 15, 2022
e0ba285
Update README.md
minhchienwikipedia Jul 15, 2022
6e6801c
fix: img links in slack readme
mathieutu Jul 18, 2022
04845b0
1.0.4
Johan-dutoit Jul 19, 2022
1504957
Add renderUsername prop
minhchienwikipedia Jul 19, 2022
3b81cbf
fix(unmet-peer-deps): removes duplicate deps from peer
doublethefish Aug 18, 2022
b516899
Merge branch 'master' of github.com:jlapstra/react-native-gifted-chat…
jlapstra Sep 8, 2022
610af16
Merge pull request #2025 from jlapstra/fix-scroll-to-bottom-for-acces…
Johan-dutoit Sep 9, 2022
6443d9a
fix(renderUsername): fix support
Johan-dutoit Dec 18, 2022
81018d6
chore(dependencies): 🔧 Update safe area view and action sheet
Johan-dutoit Dec 18, 2022
f7d8463
Merge pull request #2317 from FaridSafi/chore/dependencies
Johan-dutoit Dec 18, 2022
c7c36c0
1.1.0
Johan-dutoit Dec 18, 2022
ceac891
#2287 fixed multiline textinput does not grow anymore
flodev Dec 29, 2022
1fca709
Fixes null type for renderAvatar prop
lsthornt Jan 4, 2023
ed5ee0a
Update README.md
xcarpentier Jan 9, 2023
0764668
add imageSourceProps to MessageImage
amhinson Jan 9, 2023
8539294
fix(textinput): Multiline textinput will grow as the user inputs more…
Johan-dutoit Jan 17, 2023
75e75f0
1.1.1
Johan-dutoit Jan 23, 2023
92082c3
ref!: remove react-native-safe-area-context integration
amerikan Mar 7, 2023
6ca1e6e
ref!: remove react-native-safe-area-context dependency
Johan-dutoit Mar 13, 2023
8a70b4f
chore(deps): 🔧 update lock files
Johan-dutoit Mar 13, 2023
d1b17f8
2.0.0
Johan-dutoit Mar 13, 2023
dd8ac1c
(fix) Apply bottomOffset when keyboard is shown
joecampo Mar 21, 2023
72e0b14
fix: Apply bottomOffset when keyboard is shown
Johan-dutoit Mar 23, 2023
44ae40c
2.0.1
Johan-dutoit Mar 23, 2023
deb4c45
ref(GiftedChat): migrate class component to functional component w/ h…
amerikan Apr 11, 2023
7b6dab8
Merge pull request #2372 from amerikan/master
Johan-dutoit May 2, 2023
b119adb
ref: tidy up GiftedChat.tsx code
amerikan May 2, 2023
fe90bd8
Prevent the context from changing which forces unnecessary rerenders
mdkwock May 3, 2023
2beba0a
fix(context): prevent wasteful rerenders
Johan-dutoit May 3, 2023
cc215d8
Merge branch 'master' into gifted-chat-clean-up
Johan-dutoit May 3, 2023
8706957
fix(chat): move useMemo before conditional
May 3, 2023
39482ee
fix(chat): actionsheet ref
May 3, 2023
899a16a
fix(chat): organise imports
May 3, 2023
c14d4af
update sponsorships
May 3, 2023
d82516d
ci(tsc): add checks on PR
May 3, 2023
692fd85
ci(tsc): add checks on PR
May 3, 2023
c39a291
ci(tsc): add checks on PR
May 3, 2023
11f347b
ci(tsc): add checks on PR
May 3, 2023
ea79b66
ci(tsc): add checks on PR
May 3, 2023
30ead90
ci(tsc): add checks on PR
May 3, 2023
5b9353b
ci(tsc): add checks on PR
May 3, 2023
c4d21ee
Merge pull request #2380 from FaridSafi/add-workflow
Johan-dutoit May 3, 2023
39b72d9
Merge remote-tracking branch 'origin/master' into amerikan-gifted-cha…
May 3, 2023
14e1a54
ref(GiftedChat): comment out unused props
amerikan May 3, 2023
85e1690
ref(GiftedChat): prefer default value in prop destructure
amerikan May 3, 2023
39720e3
ref(GiftedChat): make TMessage extended in component function
amerikan May 3, 2023
1a531d3
chore: fixed type errors
amerikan May 3, 2023
2694db0
ref: removed commented out unused prop defaults
amerikan May 3, 2023
a3e55b6
ref: remove unnecessary assignment
amerikan May 3, 2023
e20c1fe
ci(main): run node 16 & 18
May 4, 2023
113c7b1
ci(main): run build on ci
May 4, 2023
fbda27e
Change testing section in readme to match actual implementation
LautaroNavarro May 4, 2023
1bec3d8
Merge pull request #2379 from amerikan/gifted-chat-clean-up
Johan-dutoit May 5, 2023
608025e
2.1.0
Johan-dutoit May 5, 2023
a793083
Update README.md
xcarpentier May 24, 2023
82d83e3
Merge branch 'master' into fix/unmet_deps_in_yarn_workspaces
Johan-dutoit Jun 5, 2023
cb997c1
Merge pull request #2266 from doublethefish/fix/unmet_deps_in_yarn_wo…
Johan-dutoit Jun 5, 2023
8c095b7
refactor(example): change to functional component
Jun 7, 2023
32f0a34
Merge pull request #2402 from FaridSafi/functional-example
Johan-dutoit Jun 7, 2023
3fa9065
2.2.0
Jun 8, 2023
01aeca4
feat(ref): expose textinput ref
Jun 8, 2023
a0db41a
2.3.0
Johan-dutoit Jun 8, 2023
69dc3c6
Merge branch 'master' into master
Johan-dutoit Jun 12, 2023
f129359
fix(docs): correct TEST_ID
Johan-dutoit Jun 12, 2023
f7d1c44
Merge pull request #2244 from mathieutu/patch-2
Johan-dutoit Jun 12, 2023
b66f373
fix(renderAvatar): allow null values to be passed
Johan-dutoit Jun 12, 2023
d54bc88
chore(packages): update use-memo-one
Jun 12, 2023
73668a7
Merge pull request #2405 from FaridSafi/chore/update-use-memo-one
Johan-dutoit Jun 12, 2023
bbcbba1
2.4.0
Johan-dutoit Jun 13, 2023
516cd30
Add ethora to sponsors list in README
Egatlov Jun 15, 2023
1c3d433
Merge pull request #2407 from Egatlov/ethora-promo
FaridSafi Jun 15, 2023
9b66ade
updated link to ethora
Egatlov Jun 15, 2023
31ac33e
Merge pull request #2408 from Egatlov/ethora-promo
FaridSafi Jun 15, 2023
cdc4fdc
chore(README): Fix broken path to example-slack-chat
Jun 19, 2023
280ac74
docs(README): Fix broken path to example-slack-chat
Johan-dutoit Aug 4, 2023
0fea9c1
update
amhinson Aug 7, 2023
081084a
feat(MessageImage): add imageSourceProps
Johan-dutoit Aug 30, 2023
09271fb
Update FUNDING.yml
FaridSafi Sep 21, 2023
eaa7923
Update FUNDING.yml
xcarpentier Oct 11, 2023
ba06287
Update README.md
xcarpentier Oct 11, 2023
5b022b6
Updated image URL in the README
Egatlov Dec 6, 2023
1d49bad
Updated new logo Ethora
Egatlov Dec 6, 2023
97b9c25
fix react-native-windows crash
lukutism Mar 14, 2024
6b3dac9
example: upd deps
kesha-antonov Apr 5, 2024
d8effdf
optimize keyboard smoothness & rendering many components
kesha-antonov Apr 5, 2024
7a98b0e
example: nav - add padding top
kesha-antonov Apr 5, 2024
b5cb723
add react-native-safe-area-context to peer deps
kesha-antonov Apr 5, 2024
43625da
optimize: prevent excessive re-renders on typing and keyboard show
kesha-antonov Apr 6, 2024
436ea53
bump v
kesha-antonov Apr 11, 2024
87393fc
package.json: add files - include src, lib
kesha-antonov May 16, 2024
3935fd0
Feat: Allow QuickReplies component container styles to be customised …
rajatkantinandi May 30, 2024
4d1ca25
fix: avatar defaultProps warning
gor3a Jul 10, 2024
d060916
more optimizations
kesha-antonov Jul 12, 2024
0136b1d
Merge pull request #2507 from gor3a/fix-avatar-defaultprops-warning
FaridSafi Aug 19, 2024
6b4cb59
Merge pull request #2466 from Egatlov/ethora-logo-update
FaridSafi Aug 19, 2024
5dcb9d0
bump version
FaridSafi Aug 19, 2024
9d218d0
update message snapshot
FaridSafi Aug 19, 2024
8f2443c
workflow: bump node v to latest stable
kesha-antonov Aug 19, 2024
a265943
Merge branch 'master' into optimize_rendering_and_keyboard_smoothness…
kesha-antonov Aug 19, 2024
31d1020
example: upd deps
kesha-antonov Aug 19, 2024
630ab82
package.json: set yarn v
kesha-antonov Aug 19, 2024
32d7488
replace expo-clipboard with @react-native-clipboard/clipboard to rely…
kesha-antonov Aug 19, 2024
9969212
workflow: bump node v to latest stable
kesha-antonov Aug 19, 2024
ff0c0ae
workflow: bump node v to 18+, 20+
kesha-antonov Aug 19, 2024
9a76a50
fix all lint problems
kesha-antonov Aug 19, 2024
c7a4575
Merge branch 'master' into optimize_rendering_and_keyboard_smoothness…
kesha-antonov Aug 19, 2024
a0408ae
ts fixes
kesha-antonov Aug 19, 2024
8c41021
fix husky hook
kesha-antonov Aug 19, 2024
6921592
setup eslint correctly. add @stylistic. remove prettier. upd RN to la…
kesha-antonov Aug 20, 2024
9d457f1
eslint: detect unreachable code
kesha-antonov Aug 20, 2024
1fbc5a3
upd deps
kesha-antonov Aug 20, 2024
da6932d
example: fixed - now it works
kesha-antonov Aug 23, 2024
3220278
Merge pull request #2493 from kesha-antonov/optimize_rendering_and_ke…
kesha-antonov Aug 23, 2024
7d7abc3
Merge pull request #2486 from lukutism/patch-1
kesha-antonov Aug 24, 2024
fcbf9d2
prevent extra calls to scroll to bottom when messages length changes
kesha-antonov Aug 24, 2024
12e7bce
rebuild yarn.lock -> upd extra deps
kesha-antonov Aug 24, 2024
2009851
bump v
kesha-antonov Aug 24, 2024
6998f8f
Avatar: use direct value of currentMessage
kesha-antonov Aug 24, 2024
f57bc99
Avatar: make code more readable. Constants: add missing comma
kesha-antonov Aug 24, 2024
5b24c89
fixed all tests
kesha-antonov Aug 24, 2024
8a74714
bump v
kesha-antonov Aug 24, 2024
34dc047
upd tests with timezone
kesha-antonov Aug 24, 2024
185bca4
add missing comma
kesha-antonov Aug 25, 2024
206b88e
added expo-modules-core
kesha-antonov Aug 26, 2024
9a96acc
add reanimated as peer dependency. updated readme on installation
kesha-antonov Aug 26, 2024
6cc9f4c
readme: fix typo
kesha-antonov Aug 26, 2024
d12ff57
removed expo-clipboard from main code, added it to example
kesha-antonov Aug 27, 2024
14c9b3c
example/slack: use expo-clipboard
kesha-antonov Aug 27, 2024
b822051
readme: updated installation guide
kesha-antonov Aug 27, 2024
b115d09
readme: updated contributors
kesha-antonov Aug 27, 2024
f89fcd3
bump v
kesha-antonov Aug 27, 2024
4225246
rm expo-clipboard mock
kesha-antonov Aug 27, 2024
0ced4e5
example: add expo-cliboard, remove react-native-get-random-values. re…
kesha-antonov Aug 29, 2024
a6664ae
rewrite typing animation on reanimated. remove outdated use-memo-one.…
kesha-antonov Aug 29, 2024
0879d75
fix #2521
kesha-antonov Aug 29, 2024
291503d
bump v
kesha-antonov Aug 29, 2024
bb54e76
fixed test
kesha-antonov Aug 29, 2024
8831b75
readme: rm outdated info
kesha-antonov Aug 29, 2024
6784ca2
upd funding
kesha-antonov Aug 29, 2024
37a152f
mv react-native-get-random-values into peer dependencies
kesha-antonov Aug 30, 2024
468cd69
bump v
kesha-antonov Aug 30, 2024
b36d583
readme: add installation note of react-native-reanimated
kesha-antonov Sep 2, 2024
fcaba4b
Add `bottomOffset` option
danilvalov Sep 5, 2024
bfe5c47
Merge pull request #2530 from danilvalov/feature/add-bottom-offset-op…
kesha-antonov Sep 6, 2024
a703a38
Added removed property from previous patches
HaythamT95 Sep 9, 2024
e7ebbac
Merge branch 'FaridSafi:master' into master
HaythamT95 Sep 9, 2024
0a3d799
Show typing indicator on web platform
cederache Sep 9, 2024
e67fb48
Merge pull request #2532 from HaythamT95/master
kesha-antonov Sep 11, 2024
40536ec
Merge pull request #2533 from cederache/patch-1
kesha-antonov Sep 11, 2024
a18e271
Rewrite `GiftedAvatar` class component to functional component + remo…
danilvalov Sep 11, 2024
b6bfe78
Merge pull request #2534 from danilvalov/feature/rewrite-gifter-avata…
kesha-antonov Sep 16, 2024
57b9da3
bump v
kesha-antonov Sep 16, 2024
3acc8e8
Add `isStatusBarTranslucentAndroid`
pnthach95 Sep 18, 2024
b50c172
fix example
thorgas Sep 20, 2024
01b41e7
Merge pull request #2 from macpieapp/fixExamples
thorgas Sep 20, 2024
2718925
add isKeyboardInternallyHandled
ImBeCiliC Sep 20, 2024
e18d771
only reset while layout is loading
ImBeCiliC Sep 23, 2024
f7da446
add isKeyboardInternallyHandled to readme
ImBeCiliC Sep 23, 2024
f03bfa9
Merge pull request #2538 from pnthach95/isStatusBarTranslucentAndroid
kesha-antonov Sep 24, 2024
d101c7c
add isInitialized flag to callback array
ImBeCiliC Sep 24, 2024
094561f
Merge branch 'master' into isKeyboardInternallyHandled
ImBeCiliC Sep 25, 2024
ca4466e
bump v
kesha-antonov Oct 1, 2024
d6d2d35
Fix initial keyboard animation if `prevValue` is `0`
danilvalov Nov 11, 2024
068eb15
fixed: handling text input focus when showing keyboard
VladimirDyachenko Dec 6, 2024
60c27a3
expose renderTypingIndicator and handleOnScroll which are already pas…
NoodleOfDeath Dec 7, 2024
741633a
minor eslint fix
NoodleOfDeath Dec 7, 2024
6542cfb
updates load earlier to fix eslint errors
NoodleOfDeath Dec 7, 2024
9dd7dd3
Add `focusOnInputWhenKeyboardOpens` prop to disable focus on `<TextIn…
danilvalov Dec 23, 2024
7d70523
Merge pull request #2563 from VladimirDyachenko/master
kesha-antonov Jan 9, 2025
d00b0c1
Merge pull request #2541 from macpieapp/isKeyboardInternallyHandled
kesha-antonov Jan 9, 2025
59842b2
Merge pull request #2573 from danilvalov/feature/add-support-for-disa…
kesha-antonov Jan 9, 2025
e34a141
Merge pull request #2565 from NoodleOfDeath/master
kesha-antonov Jan 9, 2025
8f61eb3
Merge pull request #2553 from danilvalov/fix/allow-non-null-prev-valu…
kesha-antonov Jan 9, 2025
a53f6a7
upd deps
kesha-antonov Jan 9, 2025
eebab37
bump v
kesha-antonov Jan 9, 2025
7154c9e
fix eslint
kesha-antonov Jan 9, 2025
811f6f1
fix eslint
kesha-antonov Jan 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
node_modules
android
ios
/lib
12 changes: 0 additions & 12 deletions .eslintrc

This file was deleted.

131 changes: 131 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
module.exports = {
env: {
es2021: true,
// jest: true,
browser: true,
node: true,
},
parser: '@typescript-eslint/parser',
extends: [
'standard',
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
"plugin:@typescript-eslint/eslint-recommended",
'plugin:@typescript-eslint/recommended',
'plugin:json/recommended-legacy',
'plugin:jest/recommended',
],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
project: './tsconfig.json',
},
},
{
files: ["tests/**/*"],
plugins: ["jest"],
env: {
'jest/globals': true,
},
},
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'@stylistic',
'react',
'react-hooks',
],
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/react-in-jsx-scope': 0,
'@stylistic/no-explicit-any': 'off',
'react/no-unknown-property': 0,
'indent': [
'error',
2,
{
SwitchCase: 1,
VariableDeclarator: 'first',
ignoredNodes: ['TemplateLiteral'],
},
],
'template-curly-spacing': 'off',
'linebreak-style': ['off', 'unix'],
'quotes': ['error', 'single'],
'jsx-quotes': ['error', 'prefer-single'],
'@stylistic/semi': ['error', 'never'],
'@stylistic/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'none', // No semicolon for multiline
requireLast: true,
},
singleline: {
delimiter: 'comma', // Use comma for single line
requireLast: false,
},
},
],
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'never',
functions: 'never',
},
],
'arrow-parens': ['error', 'as-needed'],
'no-func-assign': 'off',
'no-class-assign': 'off',
'no-useless-escape': 'off',
'curly': [2, 'multi', 'consistent'],
'react/prop-types': 'off', // TODO: TURN ON AND FIX ALL WARNINGS
'react/display-name': 'off',
'react-hooks/exhaustive-deps': [
'warn',
{
additionalHooks:
'(useAnimatedStyle|useSharedValue|useAnimatedGestureHandler|useAnimatedScrollHandler|useAnimatedProps|useDerivedValue|useAnimatedRef|useAnimatedReact|useAnimatedReaction)',
// useAnimatedReaction
// USE RULE FUNC/FUNC/DEPS
},
],
'no-unused-vars': ['error'],
'brace-style': ['error', '1tbs', { allowSingleLine: false }],
'nonblock-statement-body-position': ['error', 'below'],
'@stylistic/jsx-closing-bracket-location': ['error', 'line-aligned'],
'no-unreachable': 'error',
},
globals: {
describe: 'readonly',
test: 'readonly',
jest: 'readonly',
expect: 'readonly',
fetch: 'readonly',
navigator: 'readonly',
__DEV__: 'readonly',
XMLHttpRequest: 'readonly',
FormData: 'readonly',
React$Element: 'readonly',
requestAnimationFrame: 'readonly',
},
}
11 changes: 11 additions & 0 deletions .expo-shared/assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"5c6d215cbde93d15ae63d2ea43dfe8bf8a79a53146382cf7f3f0089bec2fc5d6": true,
"d0e86e9f72936ac85597d9cd6415cf22a3c208505d5586ac04de09d4dd305707": true,
"b884dbf3daca9d0a4de2f6552aa4dbdda9cbff26e2677bd76a514d71af2e7e2c": true,
"30bf2d1edfc90d2841794660cf30a94bb134b89d4808bd4b05cac2304cf6fad7": true,
"01d8b00b4e3d1dfab70e1ef3354b373f13bdcc3ad29122b3afacf34afd043960": true,
"36cb6cfb9a281169f9ba1eb7c345fba1d56a0c7115fbf8c4b3753427aad8edaa": true,
"3232d6cbd4824ece99982787e431ff1425df1d22288961602506b046c50bc516": true,
"5c8d230c038116f9327c1a38157e7b5d25e1d6bbfbb0ba4e86310f097c3d0f9f": true,
"250d0d32ab3051aee4b8f9d26a3299e6b3d8e6ee137dffe8a7e183e5478a2040": true
}
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: [faridsafi, xcarpentier, johan-dutoit, kesha-antonov]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with a custom sponsorship URL
17 changes: 17 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 15
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
Sorry, but this issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. BTW Thank you
for your contributions 😀 !!!
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Main CI

on:
pull_request:
branches:
- master

jobs:
checks:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18, 20]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Node modules
run: |
yarn install

- name: Lint
run: |
yarn build
23 changes: 22 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
.DS_Store
node_modules/
.expo/
npm-debug.log
TODO.md

.idea
.vscode
Exponent-*.app
*.log
lib/
coverage/
web-build/
.eslintcache

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
yarn-error.log

example_bare/vendor
example_bare/**/build
example_bare/ios/Pods
example_bare/android/.gradle
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn lint-staged
29 changes: 27 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
example/
TODO.md
.expo/
.expo-shared/
.circleci/
.github/
.vscode/
example-expo/
example-slack-message/
example-gifted-chat/
screenshots/
babel.config.js
tests/
README.md
ISSUE_TEMPLATE.md
codecov.yml
media/
App.tsx
app.json
metro.config.js
src/
tsconfig.json
tslint.json
yarn.lock
flow-typedefs/
.flowconfig
yarn-error.log
web-build/
types.d.ts
example
7 changes: 0 additions & 7 deletions .watchmanconfig

This file was deleted.

3 changes: 3 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

#### Additional Information

* Nodejs version: [FILL THIS OUT]
* React version: [FILL THIS OUT]
* React Native version: [FILL THIS OUT]
* react-native-gifted-chat version: [FILL THIS OUT]
* Platform(s) (iOS, Android, or both?): [FILL THIS OUT]
* TypeScript version: [FILL THIS OUT]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Farid from Safi
Copyright (c) 2019 Farid from Safi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading