Setup cocoapods example.
Showing
This diff is collapsed.
This diff is collapsed.
... | ... | @@ -16,7 +16,9 @@ |
"license": "MIT", | ||
"author": "Dylan Vann <dylanvann@gmail.com> (http://dylanvann.com)", | ||
"files": [ | ||
"ios", | ||
"ios/FastImage", | ||
"ios/Vendor", | ||
"ios/FastImage.xcodeproj", | ||
"android", | ||
"index.js", | ||
"index.d.ts", | ||
... | ... | @@ -31,11 +33,11 @@ |
"url": "git+https://github.com/DylanVann/react-native-fast-image.git" | ||
}, | ||
"scripts": { | ||
"format": "prettier --write --no-semi --single-quote --trailing-comma all ./index.js ./react-native-fast-image-example/*.js ./react-native-fast-image-example/fastImage/*.js ./react-native-fast-image-server/*.js", | ||
"format": "prettier --write --no-semi --single-quote --trailing-comma all ./index.js ./ReactNativeFastImageExample/FastImage/*.js ./react-native-fast-image-server/*.js", | ||
"prepare": "git submodule update --init --recursive", | ||
"test": "yarn run test:pretty && yarn run test:jest", | ||
"test:jest": "jest *.js", | ||
"test:pretty": "prettier-check --write --no-semi --single-quote --trailing-comma all ./index.js ./react-native-fast-image-example/*.js ./react-native-fast-image-example/fastImage/*.js ./react-native-fast-image-server/*.js" | ||
"test:pretty": "prettier-check --write --no-semi --single-quote --trailing-comma all ./index.js ./ReactNativeFastImageExample/FastImage/*.js ./react-native-fast-image-server/*.js" | ||
}, | ||
"dependencies": { | ||
"prop-types": "^15.5.10" | ||
... | ... | @@ -53,8 +55,9 @@ |
"jest": { | ||
"preset": "react-native", | ||
"modulePathIgnorePatterns": [ | ||
"example", | ||
"server" | ||
"ReactNativeFastImageExample", | ||
"ReactNativeFastImageCocoaPodsExample", | ||
"react-native-fast-image-server" | ||
] | ||
} | ||
} |
... | ... | @@ -10,13 +10,17 @@ Pod::Spec.new do |s| |
s.authors = { "Dylan Vann" => "dylan@dylanvann.com" } | ||
s.homepage = "https://github.com/DylanVann/react-native-fast-image#readme" | ||
s.license = "MIT" | ||
s.platform = :ios, "8.0" | ||
s.framework = 'UIKit' | ||
s.requires_arc = true | ||
s.source = { :git => "https://github.com/DylanVann/react-native-fast-image.git" } | ||
s.source_files = "ios/**/*.{h,m}" | ||
s.exclude_files = "ios/Vendor/**/*.{h,m}" | ||
s.dependency 'React' | ||
s.dependency 'SDWebImage' | ||
s.dependency 'SDWebImage/Core' | ||
s.dependency 'SDWebImage/GIF' | ||
s.dependency 'FLAnimatedImage' | ||
end | ||
\ No newline at end of file |
Please register or sign in to comment