pkg | download/week | issues | stars | comment |
---|---|---|---|---|
react-bootstrap ↗ | 235k | 62 | 17k | bootstrap 3 |
material-ui ↗ | 160k | 146 | 34k | full of bugs, speaking from experience |
antd ↗ | 64k | 174 | 26k | |
semantic-ui-react ↗ | 51k | 53 | 6.4K | |
reactstrap ↗ | 46k | 58 | 4k | bootstrap 4 |
@blueprintjs/core ↗ | 27k | 240 | 9k | splitted into multiple packages |
react-native-web ↗ | 11k | 27 | 9kk | used at twitter.com and on react-native docs (not just mobile) |
react-toolbox |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/react-native-gifted-chat/lib/GiftedChat.js b/node_modules/react-native-gifted-chat/lib/GiftedChat.js | |
index 7f3f4b5..78ea7a1 100644 | |
--- a/node_modules/react-native-gifted-chat/lib/GiftedChat.js | |
+++ b/node_modules/react-native-gifted-chat/lib/GiftedChat.js | |
@@ -1,6 +1,13 @@ | |
import PropTypes from 'prop-types'; | |
import React from 'react'; | |
-import { Animated, Platform, StyleSheet, View, SafeAreaView, } from 'react-native'; | |
+import { | |
+ Animated, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { StatusBar, Text, View } from 'react-native' | |
import { useSafeArea } from 'react-native-safe-area-context' | |
export function App() { | |
const safeAreaInsets = useSafeArea() | |
return ( | |
<View | |
style={{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
platform :ios, '10.0' | |
require_relative '../node_modules/react-native-unimodules/cocoapods.rb' | |
# don't just copy and paste this, notice that the target names should align with what is already in your Podfile | |
target 'YourAppNameHere' do | |
pod 'React', :path => '../node_modules/react-native', :subspecs => [ | |
'Core', | |
'CxxBridge', | |
'DevSupport', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Primitive = | |
| boolean | |
| number | |
| string | |
| bigint | |
| symbol | |
| null | |
| undefined; | |
type Narrowable = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { | |
StyleSheet, | |
Text, | |
View, | |
ScrollView, | |
Animated, | |
SafeAreaView, | |
Dimensions | |
} from "react-native"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.facebook.react.bridge.Arguments | |
import com.facebook.react.bridge.WritableArray | |
import com.facebook.react.bridge.WritableMap | |
fun writableMapOf(vararg values: Pair<String, *>): WritableMap { | |
val map = Arguments.createMap() | |
for ((key, value) in values) { | |
when (value) { | |
null -> map.putNull(key) | |
is Boolean -> map.putBoolean(key, value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This gist explains how to setup scalable Parse LiveQuery server on Heroku | |
// Because there is one and only 'web' process on Heroku, it will divide into two Heroku apps: Main and LiveQuery. | |
// A: Main app - All features except for LiveQuery server | |
// Step A1. Setup a Parse app on Heroku | |
// Step A2. Add a Heroku Redis (free plan is enough for testing) | |
// Step A3. Configure Parse app, add redisURL for liveQuery | |
var api = new ParseServer({ | |
... | |
liveQuery: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: | |
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... | |
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms. | |
*/ | |
let rec evenFibSum = (max_value, prev_num, prev_prev_num, even_sum) => { | |
let new_num = prev_num + prev_prev_num; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const webpack = require('webpack'); | |
require('dotenv').config({ | |
path: process.env.NODE_ENV === 'production' ? '.env.production' : '.env' | |
}); | |
module.exports = { | |
webpack: config => { | |
const env = Object.keys(process.env).reduce((acc, curr) => { | |
acc[`process.env.${curr}`] = JSON.stringify(process.env[curr]); |