react-native-gifted-chat 2.8.2-alpha.3 → 2.8.2-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-gifted-chat",
3
- "version": "2.8.2-alpha.3",
3
+ "version": "2.8.2-alpha.4",
4
4
  "description": "The most complete chat UI for React Native",
5
5
  "keywords": [
6
6
  "android",
@@ -5,13 +5,6 @@ import { MessageContainer } from '../GiftedChat'
5
5
  import { DEFAULT_TEST_MESSAGE } from './data'
6
6
 
7
7
  it('should render <MessageContainer /> without crashing', () => {
8
- render(
9
- <MessageContainer
10
- messages={[DEFAULT_TEST_MESSAGE]}
11
- user={{ _id: 'test' }}
12
- />
13
- )
14
-
15
8
  // Just verify it renders without throwing
16
9
  expect(() => render(
17
10
  <MessageContainer
package/src/utils.ts CHANGED
@@ -46,7 +46,6 @@ function processCallbackArguments (args: unknown[]): unknown[] {
46
46
  return params
47
47
  }
48
48
 
49
-
50
49
  export function useCallbackDebounced<T extends (...args: any[]) => any>(callbackFunc: T, deps: React.DependencyList = [], time: number): (...args: Parameters<T>) => void {
51
50
  const timeoutId = useRef<ReturnType<typeof setTimeout>>(undefined)
52
51
 
@@ -70,7 +69,6 @@ export function useCallbackDebounced<T extends (...args: any[]) => any>(callback
70
69
  return savedFunc
71
70
  }
72
71
 
73
-
74
72
  export function useCallbackThrottled<T extends (...args: any[]) => any>(callbackFunc: T, deps: React.DependencyList = [], time: number): (...args: Parameters<T>) => void {
75
73
  const lastExecution = useRef<number>(0)
76
74
  const timeoutId = useRef<ReturnType<typeof setTimeout>>(undefined)