Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Class prefixes: RCT, RK #119

Closed
jaygarcia opened this issue Mar 3, 2015 · 7 comments
Closed

Multiple Class prefixes: RCT, RK #119

jaygarcia opened this issue Mar 3, 2015 · 7 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@jaygarcia
Copy link
Contributor

Are all of these contractions of "React"?

@sahrens
Copy link
Contributor

sahrens commented Mar 9, 2015

We want to unify everything on RCT, but haven't done it yet.

Where do you see an RC prefix without RCT?

@jaygarcia
Copy link
Contributor Author

Apologies. I've been looking at things and it might be my dyslexia with the "RC" prefix. :-\

@jaygarcia jaygarcia changed the title Multiple Class prefixes: RCT, RK, RC Multiple Class prefixes: RCT, RK Mar 11, 2015
@nicklockwood
Copy link
Contributor

RK is short for "React Kit", which was the previous prefix we were using, but we've changed it to RCT (a contraction of "React", as you guessed) in accordance with Apple's guidelines on using three-letter prefixes, and to prevent clashing with RestKit. We just haven't cleaned up all the references in the JS code yet.

@vjeux vjeux closed this as completed Mar 16, 2015
vjeux pushed a commit to vjeux/react-native that referenced this issue Apr 13, 2015
Summary:
This is annoying and confusing and is mostly fixable with a simple codemod.
Let's try to make sure we don't introduce any new `RK` usage going forward
(should use something like `FBRCT` instead).

facebook#119

Test Plan: Run through all the OSS examples + holodeck Groups, MadMan, working on testing android.
@hahaGitHub
Copy link

@nicklockwood
hi,i have a question.
pod react in my own project.i use the RCTRootView.by the url ,I can get the view.but i meet a problem.
it is a warning. could you tell me why? thank you very much.
[warn][tid:com.facebook.React.JavaScript] 'devtools socket errored', { [Error: The operation couldn’t be completed. Connection refused]
line: 14510,
column: 39,
sourceURL: 'http://localhost/index.ios.bundle' }

@nicklockwood
Copy link
Contributor

@hahaGitHub this doesn't seem related to the issue that you've commented on. It's better to create new issues rather than comment on an unrelated one.

In any case, it sounds like there's either a problem with the packager on your system, or you've got the wrong sourceURL for your bundle.

The packager runs in a window in the terminal, and creates a server running on localhost, normally on port 8081.

It looks like you're trying to access it via 'http://localhost/index.ios.bundle', which would be port 8080 by default. In your browser, try accessing http://localhost/index.ios.bundle to see if it exists, and if not, try http://localhost:8081/index.ios.bundle instead. If the latter works, you need to change your sourceURL.

If neither work, look in the packager window in the Terminal and see if there are any errors. If there is no packager window, it's not running, and that's the problem.

@hahaGitHub
Copy link

@nickbalestra thank you your answer!

@hahaGitHub
Copy link

@nickbalestra
hi,i have commit a new issue.and i try your idea,then the url is normal.

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants