Jobeso / react-native-whatsapp-stickers

Integrate sticker packs for WhatsApp with your react-native app
Other
82 stars 30 forks source link

iOS: createStickerPack is not a function #44

Closed hszeto closed 4 years ago

hszeto commented 4 years ago

Environment

System: OS: macOS Mojave 10.14.6 CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Memory: 215.81 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.13.1 - /usr/local/bin/node Yarn: 1.17.3 - /usr/local/bin/yarn npm: 6.12.1 - /usr/local/bin/npm SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 IDEs: Android Studio: 3.5 AI-191.8026.42.35.6010548 Xcode: 11.3/11C29 - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5 npmGlobalPackages: create-react-native-module: 0.13.0 react-native-cli: 2.0.1

Describtion

Android is working ok. However, on iOS, the RNWhatsAppStickers object only contains isWhatsAppAvailable function. There is no send, createStickerPack or addSticker

componentDidMount() {
    console.log(RNWhatsAppStickers);
}

returns {"isWhatsAppAvailable": [Function isWhatsAppAvailable]} . That's it. It returns a lot more on Android.

It happens on both the iOS simulator and my physical iPhone.

My project was created with npx react-native init MyStickerz

hszeto commented 4 years ago

I might have figured it out. after yarn add react-native-whatsapp-stickers

  1. react-native link react-native-whatsapp-stickers
  2. cd ios
  3. pod install --no-repo-update (This installs new item without updating existing pods)
  4. cd ..

Clean Build in Xcode