Git Product home page Git Product logo

react-native-emoji-keyboard's Introduction

Emojis Keyboard for React Native

Screenshot

Based on ISEmojiView. Only works on iOS for now. If you want to add an Android version, Pull Requests are welcome.

Installation

  • yarn add react-native-emoji-keyboard or npm install --save react-native-emoji-keyboard
  • react-native link react-native-emoji-keyboard
  • In XCode, TO you your project settings and in the "General" tab. Click on the "+" in the "Linked Frameworks and Libraries" section. Locate and add "RNEmojiKeyboardFramework.framework"
  • In XCode, go to your build settings and set "Always Embed Swift Standard Libraries" to "YES"
  • Clean the Project (Product -> Clean)
  • Build and run your project

Usage

<View style={styles.container}>
    <Text>{this.state.emojis.join('')}</Text>
    <EmojiKeyboard onEmojiPicked={e => this.setState({emojis: this.state.emojis.concat(e)})}
                   onEmojiRemoved={e => this.setState({emojis: this.state.emojis.slice(0, -1)})}
                   showDeleteButton={this.state.emojis.length > 0}/>
</View>

react-native-emoji-keyboard's People

Contributors

brendan-rius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-emoji-keyboard's Issues

Not able to build

I installed and manually linked the app by adding RNEmojiKeyboardFramework.Framework and `libRNEmojiKeyboard.a, and after the start I get a crash with this message:

dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-xxx/Build/Products/Debug-iphonesimulator/RNEmojiKeyboardFramework.framework/RNEmojiKeyboardFramework
  Reason: image not found

Also tried to install the iOS Framework as pods, but still same error.

Build is successful but the app crashes

Here are the logs

Process:               appName [37166]
Path:                  /Users/USER/Library/Developer/CoreSimulator/Devices/6FAA7F6A-11B0-4353-95B1-AB87E0671BA7/data/Containers/Bundle/Application/89FDF47F-DF7B-4387-9FF6-2EAD5513FAA7/appName.app/appName
Identifier:            appName
Version:               1.0 (1)
Code Type:             X86-64 (Native)
Parent Process:        launchd_sim [476]
Responsible:           appName [37166]
User ID:               501

Date/Time:             2017-09-11 22:42:29.727 +0530
OS Version:            Mac OS X 10.11.6 (15G1108)
Report Version:        11
Anonymous UUID:        C16AECD4-7E4E-0D23-DEA6-54A4DE44EEB5

Sleep/Wake UUID:       CADD0FAB-971D-4200-8C3B-82B222967389

Time Awake Since Boot: 100000 seconds
Time Since Wake:       17000 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_FALLBACK_LIBRARY_PATH=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib
DYLD_ROOT_PATH=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot
DYLD_FALLBACK_FRAMEWORK_PATH=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks
DYLD_SHARED_REGION=avoid

Dyld Error Message:
  Library not loaded: @rpath/RNEmojiKeyboardFramework.framework/RNEmojiKeyboardFramework
  Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/6FAA7F6A-11B0-4353-95B1-AB87E0671BA7/data/Containers/Bundle/Application/89FDF47F-DF7B-4387-9FF6-2EAD5513FAA7/appName.app/appName
  Reason: image not found

Binary Images:
       0x1046e6000 -        0x104ab8fe7 +org.reactjs.native.example.appName (1.0 - 1) <768D8491-6206-3537-A885-19966622AD23> /Users/USER/Library/Developer/CoreSimulator/Devices/6FAA7F6A-11B0-4353-95B1-AB87E0671BA7/data/Containers/Bundle/Application/89FDF47F-DF7B-4387-9FF6-2EAD5513FAA7/appName.app/appName
       0x104ead000 -        0x104ed2107 +dyld_sim (360.22) <BE9E6C4A-EF51-3080-A74B-90EBF4882192> /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
       0x104f17000 -        0x104f6afff +libc++.1.dylib (237.2) <8D9C17A3-E6C1-3ED7-AB73-DCE99E5B621C> /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libc++.1.dylib
    0x7fff628f7000 -     0x7fff6292ea47  dyld (360.22) <DC81CC9D-651A-3A45-8809-928282052BD3> /usr/lib/dyld

the xcode setup steps broke my app

Hi Team - I followed all the steps and then nothing happened. The simulator just shows me my app name and closes 5 sec after that. Now I broke my app and not sure how to get it back.

Taher

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.