wwayne / react-native-nba-app Goto Github PK
View Code? Open in Web Editor NEWThis is why we play
License: MIT License
This is why we play
License: MIT License
A problem occurred configuring project ':react-native-icons'.
Could not download stetho.jar (com.facebook.stetho:stetho:1.2.0)
> Could not get resource 'https://jcenter.bintray.com/com/facebook/stetho/stetho/1.2.0/stetho-1.2.0.jar'.
> Could not GET 'https://jcenter.bintray.com/com/facebook/stetho/stetho/1.2.0/stetho-1.2.0.jar'.
> Connection to https://jcenter.bintray.com refused
How to resolve it ? I tried a lot of methods.
the process will crash when click the team tab
'/react-native-nba-app/app/containers/App.js':Only one default export allowed per module.
export class default App extends Component {} ->export class App extends Component {}
containers/App.js. Only one default export allowed per module
When launching "nam start", got the following error:
ERROR watchman--no-pretty get-sockname returned with exit code 1 2016-01-09T19:02:38,106: [cli] failed to identify PDU: fill_buffer: EOF
2016-01-09T19:02:38,107: [cli] unable to talk to your watchman on /usr/local/Cellar/watchman/4.1.0/var/run/watchman/xiong-state/sock! (Undefined error: 0)
Error: watchman--no-pretty get-sockname returned with exit code 1 2016-01-09T19:02:38,106: [cli] failed to identify PDU: fill_buffer: EOF
2016-01-09T19:02:38,107: [cli] unable to talk to your watchman on /usr/local/Cellar/watchman/4.1.0/var/run/watchman/xiong-state/sock! (Undefined error: 0)
at ChildProcess.<anonymous> (/Users/xiong/Documents/Application/react-native-nba/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/index.js:196:18)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
Failed at the [email protected] start script 'node_modules/react-native/packager/packager.sh'.
When I used the createReducer function which implemented in utils/createReducer.js, I got the following error:
One of the sources to assign has an enumerable key on the prototype chain. This is an edge case that we do not support. This error is a performance optimization and not spec compliant.
Unhandled JS Exception: One of the sources to assign has an enumerable key on the prototype chain. This is an edge case that we do not support. This error is a performance optimization and not spec compliant.
After I swap to the one which listed in Redux documentation, error gone:
export default function createReducer(initialState, handlers) {
return function reducer(state = initialState, action) {
if (handlers.hasOwnProperty(action.type)) {
return handlers[action.type](state, action)
} else {
return state
}
}
}
hello,I'm confused about where your datas in the app from?Can you please tell me about this?
不知道怎么在我的手机上运行...
你好,想仿照当前App使用Flutter实现,征求下您的建议,期待你的回复~
Game
Player
Hi,
It is more perhaps stupid question than an issue. I am bit lost in understanding your code. You open the GameDetails with the navigator from GamePanel. In the route you place game and date. In the GameDetails you get actions from the props. Where do they come from?
Thank you
When I try to test this app with my android setup, I am not able run this app locally. Here is the react-native run-android
command throws the error
Command
run-androidunrecognized. Did you mean to run this inside a react-nati ve project?
However I ran the command from inside of project.
@wwayne
seem to be getting this error
2016-01-18 19:35:04.721 [warn][tid:com.facebook.React.JavaScript] null is not an object (evaluating 'playerList.filter')
2016-01-18 19:35:04.722 [error][tid:com.facebook.React.RCTExceptionsManagerQueue] Unhandled JS Exception: null is not an object (evaluating 'playerList.filter')
any help on why?
Search your favorite player then add it.
I love the look of the app and the article but unfortunately I can't get it to work :(
I follow the instructions to install, but when I get it running I only get empty 'game' and 'players' screens, while clicking 'teams' results in a red screen error: Unexpected token < in JSON at position 0
. I've replicated this twice with fresh git clones. I'm on XCode 7.3.1, OSx El Capitan and haven't made any changes to dependencies. I also get the two below errors in console:
The regenerator/runtime module is deprecated; please import regenerator-runtime/runtime instead.
'//@ sourceURL' and '//@ sourceMappingURL' are deprecated, please use '//# sourceURL=' and '//# sourceMappingURL=' instead.
Do you know of any way to fix this? I'd love to give the app a try!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.