Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "git",
"url": "https://github.com/madsleejensen/react-native-image-sequence.git"
},
"version": "0.6.0",
"version": "0.7.0",
"description": "A <ImageSequence> component for react-native",
"author": {
"name": "Mads Lee Jensen",
Expand All @@ -17,6 +17,8 @@
},
"license": "MIT",
"homepage": "https://github.com/madsleejensen/react-native-image-sequence",
"main": "index.js",
"types": "typings/index.d.ts",
"keywords": [
"react-native",
"native",
Expand Down
16 changes: 16 additions & 0 deletions react-native-image-sequence.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require "json"

package = JSON.parse(File.read(File.join(__dir__, "package.json")))

Pod::Spec.new do |s|
s.name = package["name"]
s.version = package["version"]
s.summary = package["description"]
s.author = "Mads Lee Jensen <madsleejensen@gmail.com>"
s.homepage = package["homepage"]
s.license = package["license"]
s.platform = :ios, "9.0"
s.source = {:git => "https://github.com/madsleejensen/react-native-image-sequence.git" }
s.source_files = "ios/RCTImageSequence/*.{h,m}"
s.dependency "React"
end
17 changes: 17 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Component } from 'react';

interface ImageSequenceProps {
/** An array of source images. Each element of the array should be the result of a call to require(imagePath). */
images: any[];
/** Which index of the images array should the sequence start at. Default: 0 */
startFrameIndex?: number;
/** Playback speed of the image sequence. Default: 24 */
framesPerSecond?: number;
/** Should the sequence loop. Default: true */
loop?: boolean;
}

declare class ImageSequence extends Component<ImageSequenceProps> {
}

export default ImageSequence;