https://github.com/markolson/mahaffeysnative
https://github.com/markolson/mahaffeysnative
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/markolson/mahaffeysnative
- Owner: markolson
- Created: 2016-06-28T13:42:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-02T22:41:32.000Z (about 10 years ago)
- Last Synced: 2025-03-02T12:18:33.603Z (over 1 year ago)
- Language: JavaScript
- Size: 2.99 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
[H] HomeScreen
- Header w/ Title : Settings Gear (top right)
- Container View
[S] Settings
ListView - User Select [U]
Untappd Login [T]
[U] UserSelectList
ListView with ... users. Maybe a search at top?
[B] BeerList
SegmentedControlIOS
- On Tap
- Undrank (*default)
- Drank
ListView with beers. Long tap opens Untapped, if logged in
AsyncStorage.setItem('userID', 3162)
return AsyncStorage.getItem('userID').then(value => {
return value;
});
getInitialState: function() {
return { userId: null };
},
componentDidMount() {
this.loadUser().done();
},
async loadUser() {
var value = await AsyncStorage.getItem("@Mahaffeys:userId");
this.setState({userId: value});
},