Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
303 views
in Technique[技术] by (71.8m points)

javascript - jetBrains ide的react-native-paper代码完成(react-native-paper code completion for jetBrains ide)

Intellij uses @types/* libraries for for helping with react code completion.

(Intellij使用@ types / *库来帮助完成代码。)

react-native-paper doesn't have this kind of seperate library.As its author claims it does ship with types inside it:

(react-native-paper没有这种单独的库,正如它的作者所说的那样,它确实带有内部类型:)

https://github.com/callstack/react-native-paper/issues/1492

(https://github.com/callstack/react-native-paper/issues/1492)

Well I couldn't get it working how much I tried so I asked it here as the author suggested.What I tried:

(好吧,我无法让它发挥多少作用,所以我按照作者的建议在这里问了一下。)

  1. Added 'allowJS' : true to your jsconfig.json or tsconfig.json file since there was no file like that I created it myself( https://www.jetbrains.com/help/idea/typescript-support.html )

    (为您的jsconfig.json或tsconfig.json文件添加了'allowJS':true,因为没有我自己创建的文件( https://www.jetbrains.com/help/idea/typescript-support.html ))

  2. The next thing going to Setting->Language And FrameWorks->Javascript->Libraries->Add... click the above plus button attach files and added the directory of the library.

    (接下来要做的是设置->语言和FrameWorks-> Javascript->库->添加...单击上面的加号按钮附加文件,并添加了库的目录。)

So How do you guys got it working?Please let us know.Thank you so much.

(那么,你们是如何工作的呢?请告诉我们。非常感谢。)

  ask by steve moretz translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...