Skip to content

Commit

Permalink
Merge branch 'master' into feature/add-experimental-bridgeless
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRogue76 committed Jan 21, 2024
2 parents fc8a25e + 9753fa6 commit 3b9bd19
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
| **`imageAssetsFolder`** | Needed for **Android** to work properly with assets, iOS will ignore it. | _None_ | Android |
| **`useNativeLooping`** | **Only Windows**. When enabled, uses platform-level looping to improve smoothness, but onAnimationLoop will not fire and changing the `loop` prop will reset playback rather than finishing gracefully. | false | Windows |
| **`onAnimationLoop`** | **Only Windows and Web**. A callback function invoked when the animation loops. | _None_ | Windows, Web |
| **`onAnimationLoaded`** | A callback function which will be called when animation is done loading. This callback is called with no parameters. | _None_ | All |
| **`onAnimationFailure`** | A callback function which will be called if an error occurs while working with the animation (loading, running, etc). This callback is called with a string `error` argument, which contains the error message that occured. | _None_ | All |
| **`onAnimationFinish`** | A callback function which will be called when animation is finished. This callback is called with a boolean `isCancelled` argument, indicating if the animation actually completed playing, or if it was cancelled, for instance by calling `play()` or `reset()` while is was still playing. Note that this callback will be called only when `loop` is set to false. | _None_ | All |
| **`renderMode`** | a String flag to set whether or not to render with `HARDWARE` or `SOFTWARE` acceleration | `AUTOMATIC` | iOS, Android |
| **`cacheComposition`** | **Only Android**, a boolean flag indicating whether or not the animation should do caching. | `true` | Android |
Expand Down
14 changes: 14 additions & 0 deletions packages/core/ios/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
</dict>
</plist>
5 changes: 4 additions & 1 deletion packages/core/lottie-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ Pod::Spec.new do |s|

s.source = { :git => "https://github.com/lottie-react-native/lottie-react-native.git", :tag => "v#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm,swift}"
s.resource_bundles = {
'Lottie_React_Native_Privacy' => ['ios/PrivacyInfo.xcprivacy'],
}

s.dependency 'lottie-ios', '~> 4.3.3'
s.dependency 'lottie-ios', '~> 4.3.4'

s.swift_version = '5.6'

Expand Down

0 comments on commit 3b9bd19

Please sign in to comment.