Giter VIP home page Giter VIP logo

atom-react-native-style's Introduction

atom-react-native-style

This Atom package is for helping to write react-native StyleSheet

apm install atom-react-native-style

Features

  • completion for key/value of style

auto

Settings

  • StyleSheet create function name
    • If you use diffrent stylesheet create function, change this option
    • StyleSheet.create is default.

TODO

  • hyperclick provider for move to style definition
    • If not exists, generate one.

atom-react-native-style's People

Contributors

yomybaby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

zhiquan-yu

atom-react-native-style's Issues

Autocomplete doesn't work

Autocomplete does show me options to choose from, but when I tab or enter, it doesn't apply the result. This happens only with React Native styles.

Failed to load the atom-react-native-style package

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.23.0 x64
Electron: 1.6.15
OS: Mac OS X 10.13
Thrown From: atom-react-native-style package 0.2.0

Stack Trace

Failed to load the atom-react-native-style package

At Cannot find module 'lodash'

Error: Cannot find module 'lodash'
    at Module._resolveFilename (module.js:470:15)
    at Module._resolveFilename (/Applications/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/src/module-cache.js:354:58)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:33)
    at Object.<anonymous> (/Applications/Atom Snippets/atom-react-native-style-master/lib/util.js:3:9)
    at Object.<anonymous> (/Applications/Atom Snippets/atom-react-native-style-master/lib/util.js:110:2)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:239:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:33)
    at Object.<anonymous> (/Applications/Atom Snippets/atom-react-native-style-master/lib/rn-style-provider.js:7:13)
    at Object.<anonymous> (/Applications/Atom Snippets/atom-react-native-style-master/lib/rn-style-provider.js:240:2)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:239:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:33)
    at Object.<anonymous> (/Applications/Atom Snippets/atom-react-native-style-master/lib/main.js:3:24)
    at Object.<anonymous> (/Applications/Atom Snippets/atom-react-native-style-master/lib/main.js:25:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:239:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

Commands

     -2:21.7.0 core:select-all (input.hidden-input)
     -2:20.9.0 core:backspace (input.hidden-input)
     -2:18.1.0 autocomplete-plus:confirm (input.hidden-input)
     -2:18.1.0 snippets:expand (atom-text-editor.editor.is-focused.autocomplete-active)
     -2:14.2.0 core:backspace (input.hidden-input)
     -2:11.8.0 editor:newline (input.hidden-input)
  6x -2:07.5.0 core:backspace (input.hidden-input)
  2x -2:04.0 autocomplete-plus:activate (input.hidden-input)
     -2:02.3.0 editor:consolidate-selections (input.hidden-input)
     -2:02.3.0 core:cancel (input.hidden-input)
  5x -2:01.3.0 core:backspace (input.hidden-input)
 14x -1:55.9.0 core:undo (input.hidden-input)
  9x -1:45.5.0 core:redo (input.hidden-input)
  4x -1:42.6.0 core:backspace (input.hidden-input)
  9x -1:03.7.0 core:undo (input.hidden-input)
     -0:17.8.0 settings-view:uninstall-packages (input.hidden-input)

Non-Core Packages

atom-react-native-style 0.2.0 
city-lights-syntax 1.1.4 
react-native-components 0.1.1 
react-native-snippets 0.3.0 
react-native-snippets-horse 2.0.0 

Uncaught TypeError: Cannot read property 'start' of undefined

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.18.0 x64
Electron: 1.3.15
OS: Mac OS X 10.12.5
Thrown From: atom-react-native-style package 0.1.2

Stack Trace

Uncaught TypeError: Cannot read property 'start' of undefined

At /Users/yomybaby/.atom/packages/atom-react-native-style/lib/rn-style-provider.js:53

TypeError: Cannot read property 'start' of undefined
  at Object.getSuggestions (/packages/atom-react-native-style/lib/rn-style-provider.js:81:44)
  at <embedded>:40282:60
  at Array.forEach (native)
  at AutocompleteManager.getSuggestionsFromProviders (<embedded>:40258:23)
  at AutocompleteManager.findSuggestions (<embedded>:40247:25)

Commands

Non-Core Packages

atom-beautify 0.30.4 
atom-hot-package-loader 0.5.1 
atom-react-native-style 0.1.2 
busy-signal 1.4.3 
expand-region 0.3.1 
gloom 0.6.4 
haskell-grammar 0.4.0 
highlight-selected 0.13.1 
hyperclick 0.1.2 
intentions 1.1.2 
language-babel 2.68.0 
language-dotenv 1.0.0 
language-gitignore 0.3.0 
language-graphql 0.9.0 
language-ini 1.19.0 
language-lua 0.9.11 
language-ocaml 1.9.5 
language-rust 0.4.11 
language-swift 0.5.0 
language-thrift 1.0.2 
linter 2.0.0 
linter-eslint 8.2.1 
linter-ui-default 1.6.3 
MagicPython 1.0.11 
nuclide 0.241.0 
nuclide-format-js 0.0.36 
open-in-sourcetree 0.1.8 
project-manager 3.3.5 
react-native-snippets 0.3.0 
selection-highlight 0.1.6 
set-syntax 0.3.2 
sort-lines 0.14.0 
titanium-alloy 0.14.5 
tool-bar 1.1.0 

Failed to activate the atom-react-native-style package

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.30.0 x64
Electron: 2.0.5
OS: Microsoft Windows 7 Ultimate
Thrown From: atom-react-native-style package 0.2.0

Stack Trace

Failed to activate the atom-react-native-style package

At Cannot find module './rn-style-provider'

Error: Cannot find module './rn-style-provider'
    at Module._resolveFilename (module.js:543:15)
    at Module._resolveFilename (~/AppData/Local/atom/app-1.30.0/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.30.0/resources/app/src/module-cache.js:354:58)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (~/AppData/Local/atom/app-1.30.0/resources/app/src/native-compile-cache.js:66:33)
    at /packages/atom-react-native-style/lib/main.js:3:24)
    at /packages/atom-react-native-style/lib/main.js:25:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.30.0/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.30.0/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (internal/module.js:11:18)
    at customRequire (~/AppData/Local/atom/app-1.30.0/resources/app/static/<embedded>:96:26)
    at Package.requireMainModule (~/AppData/Local/atom/app-1.30.0/resources/app/src/package.js:782:33)
    at Package.activateNow (~/AppData/Local/atom/app-1.30.0/resources/app/src/package.js:220:40)
    at measure (~/AppData/Local/atom/app-1.30.0/resources/app/src/package.js:206:33)
    at Package.measure (~/AppData/Local/atom/app-1.30.0/resources/app/src/package.js:88:25)
    at activationPromise.Promise (~/AppData/Local/atom/app-1.30.0/resources/app/src/package.js:200:20)
    at new Promise (<anonymous>)
    at Package.activate (~/AppData/Local/atom/app-1.30.0/resources/app/src/package.js:198:38)
    at PackageManager.activatePackage (~/AppData/Local/atom/app-1.30.0/resources/app/src/package-manager.js:695:42)
    at config.transactAsync (~/AppData/Local/atom/app-1.30.0/resources/app/src/package-manager.js:670:36)
    at Config.transactAsync (~/AppData/Local/atom/app-1.30.0/resources/app/src/config.js:866:28)
    at PackageManager.activatePackages (~/AppData/Local/atom/app-1.30.0/resources/app/src/package-manager.js:668:23)
    at PackageManager.activate (~/AppData/Local/atom/app-1.30.0/resources/app/src/package-manager.js:647:50)
    at loadStatePromise.loadState.then (~/AppData/Local/atom/app-1.30.0/resources/app/src/atom-environment.js:875:27)
    at <anonymous>

Commands

Non-Core Packages

atom-react-native-style 0.2.0 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.