npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-customemoji

v1.0.1

Published

Replace <Text> to putting <Image> inline with TextView for React Native

Downloads

13

Readme

react-native-customemoji

npm version

Replace <Text> to inline <Image> with <Text> for React Native

<CustomEmoji> component for react-native Modules.

Installation

npm i --save react-native-customemoji

Props

| name | desc | type | default | | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | ------- | | emojiStyle | <Image> with styles | Text.propTypes.style | | emojis | Emoji URL Defination Arrays | Array | {} | | responsibleImage | This issue fixes a bug in React Native with <Image> component inside of <Text> components. latest RN Version is fixed. | bool | false |

ScreenShots

Examples

react-native-customemoji Example App

import React from "react";
import { StyleSheet, Text, View } from "react-native";
import CustomEmoji from "react-native-customemoji";

const emojiArray = {
  reactnative: {
    uri: "https://facebook.github.io/react-native/docs/assets/favicon.png"
  },
  mobile: require("./assets/mobile.png"),
  javascript: require("./assets/jav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UoDq7PyqzLVjYBDdjLq5lpLdniLUDxQMMASsjuJkslpXAJzqfoVBhabZ2O4cB4vRLSCjIKMY3TIOdja2O4EmJww61f01JdsQxckksBoYWr5Tt6z/UeP4PzpDevcWs0mUgXy7NwVMAfTFdsLBJ8a4ZwGcM18bkR3nQ+/yPwZts4qMpHHeo6m6wKELtcj50LuswgnnzKRzZlKFE7UiAIs5LrgPIfHE465276sbBwIgqM4bsrAgd10v9xQSYUGcrq3FcrHttpgJhFMIpyxmIhfb7ro8p2tFWCBlpF/lTo4g5HtL9g9xlEH3InQIeiSfzby/KFwpKpyOisk+kPfUEBjkbZzkUs0v1yvob6ni/tUQdBJXAAAAAElFTkSuQmCC"
  }
};

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.view}>
        <View style={styles.container}>
          <Text style={styles.largeText}>Welcome to :reactnative: !</Text>
          <Text style={styles.mediumText}>
            Build native :mobile: apps using :javascript: and :react:.
          </Text>
        </View>
        <View style={styles.container}>
          <CustomEmoji
            emojis={emojiArray}
            emojiStyle={{ borderRadius: 5, width: 30, height: 30 }}
          >
            <Text style={styles.largeText}>Welcome to :reactnative: !</Text>
          </CustomEmoji>
          <CustomEmoji emojis={emojiArray}>
            <Text style={styles.mediumText}>
              Build native :mobile: apps using :javascript: and :react:.
            </Text>
          </CustomEmoji>
        </View>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  view: {
    flex: 1
  },
  container: {
    flex: 1,
    backgroundColor: "#fff",
    alignItems: "center",
    justifyContent: "center"
  },
  largeText: {
    fontSize: 30
  },
  mediumText: {
    fontSize: 14
  }
});

License

MIT