Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Include React Native in Dist Directory#130

Closed
kinson wants to merge 1 commit intopubnub:masterpubnub/javascript:masterfrom
kinson:masterkinson/javascript:masterCopy head branch name to clipboard
Closed

Include React Native in Dist Directory#130
kinson wants to merge 1 commit intopubnub:masterpubnub/javascript:masterfrom
kinson:masterkinson/javascript:masterCopy head branch name to clipboard

Conversation

@kinson
Copy link

@kinson kinson commented Apr 27, 2018

This pr:

  • adds the gulp tasks to compile and uglify the react native source
  • includes the compiled and uglified versions of the react native source

This allows us to specifically use the react-native version of pubnub instead of the web version by default via:

import PubNub from 'pubnub/dist/react_native/pubnub';

@ghost
Copy link

ghost commented Nov 19, 2021

We have been using the react-native version via standard import since the package file contains the mapping "react-native": "./lib/react_native/index.js". Try to use import Pubnub from 'pubnub'; in your application.

@ghost ghost closed this Nov 19, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.