Giter Site home page Giter Site logo

Comments (3)

nihgwu avatar nihgwu commented on June 25, 2024

I haven't written any React Native code for more than two years, sorry

from react-native-flanimatedimage.

PaperMonster avatar PaperMonster commented on June 25, 2024

I fixed this by:

  1. Create RNFLAnimatedImage.podspec to package root with following content:
require 'json'

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

Pod::Spec.new do |s|
  s.name         = "RNFLAnimatedImage"
  s.version      = package['version']
  s.summary      = package['description']
  s.license      = package['license']

  s.authors      = package['author']
  s.homepage     = package['homepage']
  s.platform     = :ios, "9.0"

  s.source       = { :git => "https://github.com/nihgwu/react-native-flanimatedimage.git", :tag => "v#{s.version}" }
  s.source_files  = "**/*.{h,m}"

  s.dependency 'React'
  s.dependency 'FLAnimatedImage'
end
  1. Make sure the library is already unlinked.
  2. Make sure your Podfile contains use_native_modules! after dependencies e.g.:
...
target 'MyApp' do
  pod 'React', :path => '../node_modules/react-native/'
  ...
  target 'MyAppTests' do
      inherit! :search_paths
      # Pods for testing
    end
  use_native_modules!    # Required for autolink
end

  1. pod install to activate autolink.

Or use our forked version https://github.com/shobshop/react-native-flanimatedimage

from react-native-flanimatedimage.

nihgwu avatar nihgwu commented on June 25, 2024

I guess it happens because RNv0.60+ has builtin support for CocoaPods while this package uses Carthage by default?

from react-native-flanimatedimage.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.