Comments (3)
@romreed stringify.js
from react-native-emoticons.
i have the same bug. Have you found a solution?
from react-native-emoticons.
const stringify = (text) => {
let result = ''
const arr = _.toArray(text);
_.each(arr, (value, key) => {
// add this line
if (value.length==1) return result += value;
const index = _.findIndex(emojiData, function (o) {
const emoji = String.fromCodePoint(...o.unified.split('-').map(u => '0x' + u));
return emoji.codePointAt() == value.codePointAt();
});
if (index > -1) {
result += '[' + emojiData[index]['name'] + ']';
} else {
result += value;
}
});
return result;
};
from react-native-emoticons.
Related Issues (20)
- Undefined is not an object (React.PropTypes.func) HOT 3
- Emoji datasource
- 1.0.8版本 使用了 ViewPropTypes, 在 0.43 版本及以下会导致 crash HOT 2
- undifined is not a function (evaluating 'emoji.codePointAt()') HOT 1
- 有演示使用的demo程序吗?就象你贴出来的gif图片的效果。 HOT 1
- Undefined is not an object (React.PropTypes.func) HOT 10
- 1.0.9 blank screen android
- undefined is not an object (evaluating 'this._onEmoticonPress.bind') HOT 2
- 用的react-native 0.55.4 HOT 10
- 'this.props.style' Unable to override style HOT 4
- Android支持和IOS显示的效果吗?
- A trailing comma is not permitted after the rest element HOT 4
- Question: Get the emoticon parameter
- Would this work on react web HOT 2
- 依赖里面有错误
- Parse emoticons
- emoticons转换识别不出来
- Fix bug: A trailing comma is not permitted after the rest element HOT 2
- ViewPagerAndroid has been removed from React Native. It can now be installed and imported from '@react-native-community/viewpager' instead of 'react-native'. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-emoticons.