diff --git a/docs/next/button.html b/docs/next/button.html index f95efeeb04e..53ceae7304d 100644 --- a/docs/next/button.html +++ b/docs/next/button.html @@ -104,7 +104,7 @@ export default function App() { <Text style={styles.title}> Adjust the color in a way that looks standard on each platform. On iOS, the color prop controls the color of the text. On Android, the - color adjusts the backgroud color of the button. + color adjusts the background color of the button. </Text> <Button title="Press me" @@ -166,7 +166,7 @@ const styles = StyleSheet.create({
public class ReactImageManager extends SimpleViewManager<ReactImageView> { public static final String REACT_CLASS = "RCTImageView"; + ReactApplicationContext mCallerContext; + + public ReactImageManager(ReactApplicationContext reactContext) { + mCallerContext = reactContext; + } @Override public String getName() { @@ -99,7 +104,7 @@

Views are created in the createViewInstance method, the view should initialize itself in its default state, any properties will be set via a follow up call to updateView.

  @Override
   public ReactImageView createViewInstance(ThemedReactContext context) {
-    return new ReactImageView(context, Fresco.newDraweeControllerBuilder(), mCallerContext);
+    return new ReactImageView(context, Fresco.newDraweeControllerBuilder(), null, mCallerContext);
   }
 

3. Expose view property setters using @ReactProp (or @ReactPropGroup) annotation

diff --git a/docs/next/native-components-android/index.html b/docs/next/native-components-android/index.html index d5dac632100..9eb9bfefd36 100644 --- a/docs/next/native-components-android/index.html +++ b/docs/next/native-components-android/index.html @@ -89,6 +89,11 @@ public class ReactImageManager extends SimpleViewManager<ReactImageView> { public static final String REACT_CLASS = "RCTImageView"; + ReactApplicationContext mCallerContext; + + public ReactImageManager(ReactApplicationContext reactContext) { + mCallerContext = reactContext; + } @Override public String getName() { @@ -99,7 +104,7 @@

Views are created in the createViewInstance method, the view should initialize itself in its default state, any properties will be set via a follow up call to updateView.

  @Override
   public ReactImageView createViewInstance(ThemedReactContext context) {
-    return new ReactImageView(context, Fresco.newDraweeControllerBuilder(), mCallerContext);
+    return new ReactImageView(context, Fresco.newDraweeControllerBuilder(), null, mCallerContext);
   }
 

3. Expose view property setters using @ReactProp (or @ReactPropGroup) annotation

diff --git a/docs/next/typescript.html b/docs/next/typescript.html index 030291f77ae..f8727b49d91 100644 --- a/docs/next/typescript.html +++ b/docs/next/typescript.html @@ -71,7 +71,7 @@
Edit

Using TypeScript with React Native

TypeScript is a language which extends JavaScript by adding type definitions, much like Flow. While React Native is built in Flow, it supports both TypeScript and Flow by default.

Getting Started with TypeScript

If you're starting a new project, there are a few different ways to get started. You can use the TypeScript template:

-
react-native init MyTSProject --template typescript
+
npx react-native init MyApp --template react-native-template-typescript
 

You can use Expo which has two TypeScript templates:

npm install -g expo-cli
diff --git a/docs/next/typescript/index.html b/docs/next/typescript/index.html
index 030291f77ae..f8727b49d91 100644
--- a/docs/next/typescript/index.html
+++ b/docs/next/typescript/index.html
@@ -71,7 +71,7 @@
         
Edit

Using TypeScript with React Native

TypeScript is a language which extends JavaScript by adding type definitions, much like Flow. While React Native is built in Flow, it supports both TypeScript and Flow by default.

Getting Started with TypeScript

If you're starting a new project, there are a few different ways to get started. You can use the TypeScript template:

-
react-native init MyTSProject --template typescript
+
npx react-native init MyApp --template react-native-template-typescript
 

You can use Expo which has two TypeScript templates:

npm install -g expo-cli