This file contains 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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.billingapp"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application | |
android:name=".MainApplication" | |
android:label="@string/app_name" | |
android:icon="@mipmap/ic_launcher" | |
android:roundIcon="@mipmap/ic_launcher_round" |
This file contains 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
suite | |
.add('expo-random [Sync]', () => { | |
getRandomBytes(SIZE); | |
}) | |
.add('expo-random [Async]', async () => { | |
await getRandomBytesAsync(SIZE); | |
}) | |
.add('react-native-randomness', () => { | |
randomnessRandomBytes(SIZE); | |
}) |
This file contains 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 markdownPages = `${__dirname}/src/markdown-pages` | |
module.exports = { | |
plugins: [ | |
{ | |
resolve: `gatsby-source-medium-backup`, | |
options: { | |
source: `${__dirname}/medium-export.zip`, | |
destination: markdownPages, | |
}, |
This file contains 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
]) | |
}while(1);</x>{ | |
"success": true, | |
"payload": { | |
"user": { | |
"userId": "dc9e3fa402bd", | |
"name": "Eugene Hauptmann", | |
"username": "eugenehauptmann", | |
"createdAt": 1615565124899, | |
"imageId": "1*J0OI-J0hjTQ14-3JEzmgtw.jpeg", |
This file contains 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
// https://www.reddit.com/r/react/comments/mkuhg4/how_do_i_handle_this_i_want_to_set_state_on_lots/ | |
const data = { | |
'loc': 'location', | |
'svc': 'serviceType', | |
'decorator': 'decorator', | |
... | |
}; | |
const handleChange = (e) => { |
This file contains 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 * as React from 'react'; | |
import { StyleSheet, View, Text } from 'react-native'; | |
import { random } from 'react-native-randomness'; | |
export default function App() { | |
const [result, setResult] = React.useState<any | undefined>(); | |
React.useEffect(() => { | |
random().then(setResult); |
This file contains 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 path = require('path'); | |
const pak = require('../package.json'); | |
const root = path.resolve(__dirname, '..'); | |
const modules = Object.keys({ | |
...pak.peerDependencies, | |
}); | |
module.exports = { |
This file contains 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
package com.reactnativerandomness | |
import android.util.Base64 | |
import com.facebook.react.bridge.Promise | |
import com.facebook.react.bridge.ReactApplicationContext | |
import com.facebook.react.bridge.ReactContextBaseJavaModule | |
import com.facebook.react.bridge.ReactMethod | |
import java.security.SecureRandom | |
This file contains 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
package com.reactnativerandomness | |
import com.facebook.react.ReactPackage | |
import com.facebook.react.bridge.NativeModule | |
import com.facebook.react.bridge.ReactApplicationContext | |
import com.facebook.react.uimanager.ViewManager | |
class RandomnessPackage : ReactPackage { | |
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> { |
This file contains 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 "Randomness.h" | |
@implementation Randomness | |
RCT_EXPORT_MODULE() | |
// Example method | |
// See // https://reactnative.dev/docs/native-modules-ios | |
RCT_REMAP_METHOD(random, | |
randomWithLength:(nonnull NSNumber*)length |
NewerOlder