@lodev09/react-native-true-sheet 2.0.1 → 2.0.3

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.
@@ -45,7 +45,7 @@ def supportsNamespace() {
45
45
 
46
46
  android {
47
47
  if (supportsNamespace()) {
48
- namespace "com.truesheet"
48
+ namespace "com.lodev09.truesheet"
49
49
 
50
50
  sourceSets {
51
51
  main {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lodev09/react-native-true-sheet",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "The true native bottom sheet experience for your React Native Apps.",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/commonjs/index.js",
@@ -16,6 +16,13 @@ Pod::Spec.new do |s|
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
+ if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
20
+ s.pod_target_xcconfig = {
21
+ # Detect if new arch is enabled in Swift code
22
+ "OTHER_SWIFT_FLAGS" => "-DRCT_NEW_ARCH_ENABLED"
23
+ }
24
+ end
25
+
19
26
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
20
27
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
21
28
  if respond_to?(:install_modules_dependencies, true)
@@ -26,10 +33,10 @@ Pod::Spec.new do |s|
26
33
  # Don't install the dependencies when we run `pod install` in the old architecture.
27
34
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
28
35
  s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
29
- s.pod_target_xcconfig = {
30
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
31
- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
32
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
36
+ s.pod_target_xcconfig = s.pod_target_xcconfig | {
37
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
38
+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
39
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
33
40
  }
34
41
  s.dependency "React-RCTFabric"
35
42
  s.dependency "React-Codegen"