stream-chat-react-native 8.13.7 → 9.0.0-beta.10

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.
@@ -0,0 +1,15 @@
1
+ import type { ColorValue, HostComponent, ViewProps } from 'react-native';
2
+
3
+ import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
4
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
+
6
+ export interface NativeProps extends ViewProps {
7
+ baseColor?: ColorValue;
8
+ duration?: WithDefault<Int32, 1200>;
9
+ enabled?: WithDefault<boolean, true>;
10
+ gradientColor?: ColorValue;
11
+ }
12
+
13
+ export default codegenNativeComponent<NativeProps>(
14
+ 'StreamShimmerView',
15
+ ) as HostComponent<NativeProps>;
@@ -24,7 +24,6 @@ async function createResizedImage(
24
24
  quality: number,
25
25
  rotation: number = 0,
26
26
  outputPath?: string | null,
27
- keepMeta = false,
28
27
  options: Options = defaultOptions,
29
28
  ): Promise<Response> {
30
29
  const { mode, onlyScaleDown } = { ...defaultOptions, ...options };
@@ -39,7 +38,6 @@ async function createResizedImage(
39
38
  onlyScaleDown,
40
39
  rotation,
41
40
  outputPath,
42
- keepMeta,
43
41
  );
44
42
  }
45
43
 
@@ -0,0 +1,3 @@
1
+ import StreamShimmerViewNativeComponent from '../native/StreamShimmerViewNativeComponent';
2
+
3
+ export const NativeShimmerView = StreamShimmerViewNativeComponent;
@@ -2,7 +2,19 @@ import React from 'react';
2
2
  import AudioVideoPlayer from './AudioVideo';
3
3
 
4
4
  export const Video = AudioVideoPlayer
5
- ? ({ onBuffer, onEnd, onLoad, onProgress, paused, repeat, resizeMode, style, uri, videoRef }) => (
5
+ ? ({
6
+ onBuffer,
7
+ onEnd,
8
+ onLoad,
9
+ onProgress,
10
+ paused,
11
+ repeat,
12
+ resizeMode,
13
+ style,
14
+ uri,
15
+ videoRef,
16
+ rate,
17
+ }) => (
6
18
  <AudioVideoPlayer
7
19
  ignoreSilentSwitch={'ignore'}
8
20
  onBuffer={onBuffer}
@@ -20,6 +32,7 @@ export const Video = AudioVideoPlayer
20
32
  uri,
21
33
  }}
22
34
  style={style}
35
+ rate={rate}
23
36
  />
24
37
  )
25
38
  : null;
@@ -4,6 +4,7 @@ export * from './FlatList';
4
4
  export * from './getLocalAssetUri';
5
5
  export * from './getPhotos';
6
6
  export * from './iOS14RefreshGallerySelection';
7
+ export * from './NativeShimmerView';
7
8
  export * from './oniOS14GalleryLibrarySelectionChange';
8
9
  export * from './pickDocument';
9
10
  export * from './pickImage';
@@ -1,7 +1,6 @@
1
1
  require "json"
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
- folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
4
 
6
5
  Pod::Spec.new do |s|
7
6
  s.name = "stream-chat-react-native"
@@ -11,32 +10,16 @@ Pod::Spec.new do |s|
11
10
  s.license = package["license"]
12
11
  s.authors = package["author"]
13
12
 
14
- s.platforms = { :ios => "10.0" }
13
+ s.platforms = { :ios => min_ios_version_supported }
15
14
  s.source = { :git => "./ios", :tag => "#{s.version}" }
15
+ s.prepare_command = <<-CMD
16
+ if [ -d ../shared-native/ios ]; then
17
+ mkdir -p ios/shared
18
+ rsync -a --delete ../shared-native/ios/ ios/shared/
19
+ fi
20
+ CMD
21
+ s.source_files = "ios/**/*.{h,m,mm,swift}"
22
+ s.private_header_files = "ios/**/*.h"
16
23
 
17
- s.source_files = "ios/**/*.{h,m,mm}"
18
-
19
- s.dependency "React-Core"
20
- s.ios.framework = 'AssetsLibrary', 'MobileCoreServices'
21
-
22
- # Don't install the dependencies when we run `pod install` in the old architecture.
23
- if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
24
- s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
25
- s.pod_target_xcconfig = {
26
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
27
- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
28
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
29
- }
30
- s.dependency "React-Codegen"
31
- # Prebuilt RN modes already handle Folly (or don't expose RCT-Folly podspec).
32
- use_prebuilt_core = ENV['RCT_USE_PREBUILT_RNCORE'] == '1'
33
- use_prebuilt_deps = ENV['RCT_USE_RN_DEP'] == '1'
34
- unless use_prebuilt_core || use_prebuilt_deps
35
- s.dependency "RCT-Folly"
36
- end
37
- s.dependency "RCTRequired"
38
- s.dependency "RCTTypeSafety"
39
- s.dependency "ReactCommon/turbomodule/core"
40
- install_modules_dependencies(s)
41
- end
24
+ install_modules_dependencies(s)
42
25
  end